Skip to content

Commit 478429d

Browse files
committed
Upgrade all AE test projects to TypeScript 3.7, except for api-extractor-lib1-test which tests TypeScript 2.4
1 parent 1808859 commit 478429d

File tree

17 files changed

+39
-36
lines changed

17 files changed

+39
-36
lines changed

build-tests/api-documenter-test/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
"@types/jest": "23.3.11",
1515
"@types/node": "8.10.54",
1616
"fs-extra": "~7.0.1",
17-
"typescript": "~3.1.6"
17+
"typescript": "~3.7.2"
1818
}
1919
}

build-tests/api-extractor-lib1-test/etc/api-extractor-lib1-test.api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
```ts
66

77
// Warning: (ae-forgotten-export) The symbol "Lib1ForgottenExport" needs to be exported by the entry point index.d.ts
8-
//
8+
//
99
// @public (undocumented)
1010
export class Lib1Class extends Lib1ForgottenExport {
1111
}

build-tests/api-extractor-lib1-test/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
"@types/jest": "23.3.11",
1414
"@types/node": "8.10.54",
1515
"fs-extra": "~7.0.1",
16-
"typescript": "~3.1.6"
16+
"typescript": "~2.4.2"
1717
}
1818
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
2+
// See LICENSE in the project root for license information.
3+
4+
export class Lib1ForgottenExport {
5+
}

build-tests/api-extractor-lib1-test/src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
* @packageDocumentation
1111
*/
1212

13-
class Lib1ForgottenExport {
14-
}
13+
import { Lib1ForgottenExport } from './Lib1ForgottenExport';
1514

1615
/** @public */
1716
export class Lib1Class extends Lib1ForgottenExport {

build-tests/api-extractor-lib1-test/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"module": "commonjs",
66
"declaration": true,
77
"sourceMap": true,
8-
"declarationMap": true,
98
"experimentalDecorators": true,
109
"strictNullChecks": true,
1110
"types": [

build-tests/api-extractor-lib2-test/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
"@types/jest": "23.3.11",
1414
"@types/node": "8.10.54",
1515
"fs-extra": "~7.0.1",
16-
"typescript": "~3.1.6"
16+
"typescript": "~3.7.2"
1717
}
1818
}

build-tests/api-extractor-lib3-test/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
"@types/jest": "23.3.11",
1717
"@types/node": "8.10.54",
1818
"fs-extra": "~7.0.1",
19-
"typescript": "~3.1.6"
19+
"typescript": "~3.7.2"
2020
}
2121
}

build-tests/api-extractor-scenarios/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
"api-extractor-lib3-test": "1.0.0",
2020
"colors": "~1.2.1",
2121
"fs-extra": "~7.0.1",
22-
"typescript": "~3.1.6"
22+
"typescript": "~3.7.2"
2323
}
2424
}

build-tests/api-extractor-test-01/dist/api-extractor-test-01-beta.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export declare class ClassWithAccessModifiers {
9292
/** Doc comment */
9393
private privateMethod;
9494
/** Doc comment */
95-
private readonly privateGetter;
95+
private get privateGetter();
9696
/** Doc comment */
9797
private privateSetter;
9898
/** Doc comment */
@@ -102,7 +102,7 @@ export declare class ClassWithAccessModifiers {
102102
/** Doc comment */
103103
protected protectedField: number;
104104
/** Doc comment */
105-
protected readonly protectedGetter: string;
105+
protected get protectedGetter(): string;
106106
/** Doc comment */
107107
protected protectedSetter(x: string): void;
108108
/** Doc comment */
@@ -116,11 +116,11 @@ export declare class ClassWithAccessModifiers {
116116
*/
117117
export declare class ClassWithSymbols {
118118
readonly [unexportedCustomSymbol]: number;
119-
readonly [locallyExportedCustomSymbol]: string;
119+
get [locallyExportedCustomSymbol](): string;
120120
[fullyExportedCustomSymbol](): void;
121-
readonly [ANamespace.locallyExportedCustomSymbol]: string;
121+
get [ANamespace.locallyExportedCustomSymbol](): string;
122122
[ANamespace.fullyExportedCustomSymbol](): void;
123-
readonly [Symbol.toStringTag]: string;
123+
get [Symbol.toStringTag](): string;
124124
}
125125

126126
/**

0 commit comments

Comments
 (0)