Skip to content

Commit c7cec89

Browse files
authored
Merge pull request #4103 from iclanton/typescript-5
Upgrade TypeScript to ~5.0.4.
2 parents fdd48cf + a5d39fa commit c7cec89

File tree

162 files changed

+2658
-1845
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

162 files changed

+2658
-1845
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ These GitHub repositories provide supplementary resources for Rush Stack:
145145
| [/build-tests/heft-parameter-plugin-test](./build-tests/heft-parameter-plugin-test/) | This project exercises a built-in Heft action with a custom parameter |
146146
| [/build-tests/heft-sass-test](./build-tests/heft-sass-test/) | This project illustrates a minimal tutorial Heft project targeting the web browser runtime |
147147
| [/build-tests/heft-typescript-composite-test](./build-tests/heft-typescript-composite-test/) | Building this project tests behavior of Heft when the tsconfig.json file uses project references. |
148+
| [/build-tests/heft-typescript-v2-test](./build-tests/heft-typescript-v2-test/) | Building this project tests building with TypeScript v2 |
149+
| [/build-tests/heft-typescript-v3-test](./build-tests/heft-typescript-v3-test/) | Building this project tests building with TypeScript v3 |
150+
| [/build-tests/heft-typescript-v4-test](./build-tests/heft-typescript-v4-test/) | Building this project tests building with TypeScript v4 |
148151
| [/build-tests/heft-web-rig-library-test](./build-tests/heft-web-rig-library-test/) | A test project for Heft that exercises the '@rushstack/heft-web-rig' package |
149152
| [/build-tests/heft-webpack4-everything-test](./build-tests/heft-webpack4-everything-test/) | Building this project tests every task and config file for Heft when targeting the web browser runtime using Webpack 4 |
150153
| [/build-tests/heft-webpack5-everything-test](./build-tests/heft-webpack5-everything-test/) | Building this project tests every task and config file for Heft when targeting the web browser runtime using Webpack 5 |

apps/api-extractor/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@
4848
"resolve": "~1.22.1",
4949
"semver": "~7.3.0",
5050
"source-map": "~0.6.1",
51-
"typescript": "~4.8.4"
51+
"typescript": "~5.0.4"
5252
},
5353
"devDependencies": {
5454
"@rushstack/eslint-config": "workspace:*",
55-
"@rushstack/heft": "0.49.3",
56-
"@rushstack/heft-node-rig": "1.11.14",
55+
"@rushstack/heft": "0.50.4",
56+
"@rushstack/heft-node-rig": "1.12.10",
5757
"@types/heft-jest": "1.0.1",
5858
"@types/lodash": "4.14.116",
5959
"@types/node": "14.18.36",

apps/heft/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@
5252
"devDependencies": {
5353
"@microsoft/api-extractor": "workspace:*",
5454
"@rushstack/eslint-config": "workspace:*",
55-
"@rushstack/heft": "0.49.3",
56-
"@rushstack/heft-node-rig": "1.11.14",
55+
"@rushstack/heft": "0.50.4",
56+
"@rushstack/heft-node-rig": "1.12.10",
5757
"@types/argparse": "1.0.38",
5858
"@types/eslint": "8.2.0",
5959
"@types/glob": "7.1.1",
@@ -62,6 +62,6 @@
6262
"@types/semver": "7.3.5",
6363
"colors": "~1.2.1",
6464
"tslint": "~5.20.1",
65-
"typescript": "~4.8.4"
65+
"typescript": "~5.0.4"
6666
}
6767
}

apps/trace-import/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"colors": "~1.2.1",
2424
"resolve": "~1.22.1",
2525
"semver": "~7.3.0",
26-
"typescript": "~4.8.4"
26+
"typescript": "~5.0.4"
2727
},
2828
"devDependencies": {
2929
"@rushstack/eslint-config": "workspace:*",

build-tests-samples/heft-node-basic-tutorial/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
"@types/heft-jest": "1.0.1",
1818
"@types/node": "14.18.36",
1919
"eslint": "~8.7.0",
20-
"typescript": "~4.8.4"
20+
"typescript": "~5.0.4"
2121
}
2222
}

build-tests-samples/heft-node-jest-tutorial/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
"@types/heft-jest": "1.0.1",
1717
"@types/node": "14.18.36",
1818
"eslint": "~8.7.0",
19-
"typescript": "~4.8.4"
19+
"typescript": "~5.0.4"
2020
}
2121
}

build-tests-samples/heft-serverless-stack-tutorial/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@
2626
"aws-cdk-lib": "2.7.0",
2727
"constructs": "~10.0.98",
2828
"eslint": "~8.7.0",
29-
"typescript": "~4.8.4"
29+
"typescript": "~5.0.4"
3030
}
3131
}

build-tests-samples/heft-storybook-react-tutorial-storykit/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"react": "~16.13.1",
3333
"style-loader": "~2.0.0",
3434
"terser-webpack-plugin": "~3.0.8",
35-
"typescript": "~4.8.4",
35+
"typescript": "~5.0.4",
3636
"webpack": "~4.44.2"
3737
}
3838
}

build-tests-samples/heft-storybook-react-tutorial/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"html-webpack-plugin": "~4.5.2",
3636
"source-map-loader": "~1.1.3",
3737
"style-loader": "~2.0.0",
38-
"typescript": "~4.8.4",
38+
"typescript": "~5.0.4",
3939
"webpack": "~4.44.2"
4040
}
4141
}

build-tests-samples/heft-web-rig-app-tutorial/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@
2323
"@types/react-dom": "16.9.14",
2424
"@types/react": "16.14.23",
2525
"@types/webpack-env": "1.18.0",
26-
"typescript": "~4.8.4"
26+
"typescript": "~5.0.4"
2727
}
2828
}

build-tests-samples/heft-web-rig-library-tutorial/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@
2525
"@types/react-dom": "16.9.14",
2626
"@types/react": "16.14.23",
2727
"@types/webpack-env": "1.18.0",
28-
"typescript": "~4.8.4"
28+
"typescript": "~5.0.4"
2929
}
3030
}

build-tests-samples/heft-webpack-basic-tutorial/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"html-webpack-plugin": "~5.5.0",
2929
"source-map-loader": "~3.0.1",
3030
"style-loader": "~3.3.1",
31-
"typescript": "~4.8.4",
31+
"typescript": "~5.0.4",
3232
"webpack": "~5.80.0"
3333
}
3434
}

build-tests-samples/packlets-tutorial/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
"@rushstack/heft": "workspace:*",
1515
"@types/node": "14.18.36",
1616
"eslint": "~8.7.0",
17-
"typescript": "~4.8.4"
17+
"typescript": "~5.0.4"
1818
}
1919
}

build-tests/api-documenter-scenarios/etc/inheritedMembers/api-documenter-scenarios.api.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,7 @@
883883
"excerptTokens": [
884884
{
885885
"kind": "Content",
886-
"text": "export declare type IInterfaceLikeTypeAlias = "
886+
"text": "export type IInterfaceLikeTypeAlias = "
887887
},
888888
{
889889
"kind": "Content",

build-tests/api-documenter-scenarios/etc/inheritedMembers/markdown/api-documenter-scenarios.iinterfaceliketypealias.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Some interface-like type alias.
99
**Signature:**
1010

1111
```typescript
12-
export declare type IInterfaceLikeTypeAlias = {
12+
export type IInterfaceLikeTypeAlias = {
1313
someProp: number;
1414
};
1515
```

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

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

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1397,7 +1397,7 @@
13971397
"excerptTokens": [
13981398
{
13991399
"kind": "Content",
1400-
"text": "export declare type ExampleDuplicateTypeAlias = "
1400+
"text": "export type ExampleDuplicateTypeAlias = "
14011401
},
14021402
{
14031403
"kind": "Reference",
@@ -1496,7 +1496,7 @@
14961496
"excerptTokens": [
14971497
{
14981498
"kind": "Content",
1499-
"text": "export declare type ExampleTypeAlias = "
1499+
"text": "export type ExampleTypeAlias = "
15001500
},
15011501
{
15021502
"kind": "Reference",
@@ -1527,7 +1527,7 @@
15271527
"excerptTokens": [
15281528
{
15291529
"kind": "Content",
1530-
"text": "export declare type ExampleUnionTypeAlias = "
1530+
"text": "export type ExampleUnionTypeAlias = "
15311531
},
15321532
{
15331533
"kind": "Reference",
@@ -1594,7 +1594,7 @@
15941594
"excerptTokens": [
15951595
{
15961596
"kind": "Content",
1597-
"text": "export declare type GenericTypeAlias<T> = "
1597+
"text": "export type GenericTypeAlias<T> = "
15981598
},
15991599
{
16001600
"kind": "Content",
@@ -2725,7 +2725,7 @@
27252725
"excerptTokens": [
27262726
{
27272727
"kind": "Content",
2728-
"text": "export declare type TypeAlias = "
2728+
"text": "export type TypeAlias = "
27292729
},
27302730
{
27312731
"kind": "Content",

build-tests/api-documenter-test/etc/markdown/api-documenter-test.exampleduplicatetypealias.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ A type alias that has duplicate references.
99
**Signature:**
1010

1111
```typescript
12-
export declare type ExampleDuplicateTypeAlias = SystemEvent | typeof SystemEvent;
12+
export type ExampleDuplicateTypeAlias = SystemEvent | typeof SystemEvent;
1313
```
1414
**References:** [SystemEvent](./api-documenter-test.systemevent.md)
1515

build-tests/api-documenter-test/etc/markdown/api-documenter-test.exampletypealias.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ A type alias
99
**Signature:**
1010

1111
```typescript
12-
export declare type ExampleTypeAlias = Promise<boolean>;
12+
export type ExampleTypeAlias = Promise<boolean>;
1313
```

build-tests/api-documenter-test/etc/markdown/api-documenter-test.exampleuniontypealias.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ A type alias that references multiple other types.
99
**Signature:**
1010

1111
```typescript
12-
export declare type ExampleUnionTypeAlias = IDocInterface1 | IDocInterface3;
12+
export type ExampleUnionTypeAlias = IDocInterface1 | IDocInterface3;
1313
```
1414
**References:** [IDocInterface1](./api-documenter-test.idocinterface1.md)<!-- -->, [IDocInterface3](./api-documenter-test.idocinterface3.md)
1515

build-tests/api-documenter-test/etc/markdown/api-documenter-test.generictypealias.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
**Signature:**
99

1010
```typescript
11-
export declare type GenericTypeAlias<T> = T[];
11+
export type GenericTypeAlias<T> = T[];
1212
```

build-tests/api-documenter-test/etc/markdown/api-documenter-test.typealias.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
**Signature:**
99

1010
```typescript
11-
export declare type TypeAlias = number;
11+
export type TypeAlias = number;
1212
```

build-tests/api-documenter-test/etc/yaml/api-documenter-test/exampleduplicatetypealias.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ remarks: ''
88
example: []
99
isPreview: false
1010
isDeprecated: false
11-
syntax: export declare type ExampleDuplicateTypeAlias = SystemEvent | typeof SystemEvent;
11+
syntax: export type ExampleDuplicateTypeAlias = SystemEvent | typeof SystemEvent;

build-tests/api-documenter-test/etc/yaml/api-documenter-test/exampletypealias.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ remarks: ''
88
example: []
99
isPreview: false
1010
isDeprecated: false
11-
syntax: export declare type ExampleTypeAlias = Promise<boolean>;
11+
syntax: export type ExampleTypeAlias = Promise<boolean>;

build-tests/api-documenter-test/etc/yaml/api-documenter-test/exampleuniontypealias.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ remarks: ''
88
example: []
99
isPreview: false
1010
isDeprecated: false
11-
syntax: export declare type ExampleUnionTypeAlias = IDocInterface1 | IDocInterface3;
11+
syntax: export type ExampleUnionTypeAlias = IDocInterface1 | IDocInterface3;

build-tests/api-documenter-test/etc/yaml/api-documenter-test/generictypealias.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ remarks: ''
88
example: []
99
isPreview: false
1010
isDeprecated: false
11-
syntax: 'export declare type GenericTypeAlias<T> = T[];'
11+
syntax: 'export type GenericTypeAlias<T> = T[];'

build-tests/api-documenter-test/etc/yaml/api-documenter-test/typealias.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ remarks: ''
88
example: []
99
isPreview: false
1010
isDeprecated: false
11-
syntax: export declare type TypeAlias = number;
11+
syntax: export type TypeAlias = number;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
"@types/jest": "29.2.5",
1616
"@types/node": "14.18.36",
1717
"fs-extra": "~7.0.1",
18-
"typescript": "~4.8.4"
18+
"typescript": "~5.0.4"
1919
}
2020
}

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

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
"@types/jest": "29.2.5",
1818
"@types/node": "14.18.36",
1919
"fs-extra": "~7.0.1",
20-
"typescript": "~4.8.4"
20+
"typescript": "~5.0.4"
2121
}
2222
}

build-tests/api-extractor-scenarios/etc/apiItemKinds/api-extractor-scenarios.api.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,7 @@
919919
"excerptTokens": [
920920
{
921921
"kind": "Content",
922-
"text": "export declare type SomeType = "
922+
"text": "export type SomeType = "
923923
},
924924
{
925925
"kind": "Content",

build-tests/api-extractor-scenarios/etc/includeForgottenExports/api-extractor-scenarios.api.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@
215215
"excerptTokens": [
216216
{
217217
"kind": "Content",
218-
"text": "declare type DuplicateName = "
218+
"text": "type DuplicateName = "
219219
},
220220
{
221221
"kind": "Content",
@@ -241,7 +241,7 @@
241241
"excerptTokens": [
242242
{
243243
"kind": "Content",
244-
"text": "export declare type DuplicateName = "
244+
"text": "export type DuplicateName = "
245245
},
246246
{
247247
"kind": "Content",
@@ -332,7 +332,7 @@
332332
"excerptTokens": [
333333
{
334334
"kind": "Content",
335-
"text": "declare type ForgottenExport2 = "
335+
"text": "type ForgottenExport2 = "
336336
},
337337
{
338338
"kind": "Content",

build-tests/api-extractor-scenarios/etc/typeParameters/api-extractor-scenarios.api.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@
422422
"excerptTokens": [
423423
{
424424
"kind": "Content",
425-
"text": "export declare type GenericTypeAlias<T> = "
425+
"text": "export type GenericTypeAlias<T> = "
426426
},
427427
{
428428
"kind": "Content",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
"api-extractor-lib3-test": "workspace:*",
2121
"colors": "~1.2.1",
2222
"fs-extra": "~7.0.1",
23-
"typescript": "~4.8.4"
23+
"typescript": "~5.0.4"
2424
}
2525
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
"@types/heft-jest": "1.0.1",
2020
"@types/node": "14.18.36",
2121
"fs-extra": "~7.0.1",
22-
"typescript": "~4.8.4"
22+
"typescript": "~5.0.4"
2323
}
2424
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818
"@microsoft/api-extractor": "workspace:*",
1919
"@types/node": "14.18.36",
2020
"fs-extra": "~7.0.1",
21-
"typescript": "~4.8.4"
21+
"typescript": "~5.0.4"
2222
}
2323
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*/
1414
export { SubclassWithImport } from './SubclassWithImport';
1515

16-
export * from './TypeFromImportedModule';
16+
export type * from './TypeFromImportedModule';
1717

1818
export { importDeduping1 } from './ImportDeduping1';
1919
export { importDeduping2 } from './ImportDeduping2';

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
"@types/node": "14.18.36",
1313
"api-extractor-test-02": "workspace:*",
1414
"fs-extra": "~7.0.1",
15-
"typescript": "~4.8.4"
15+
"typescript": "~5.0.4"
1616
}
1717
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
"@microsoft/api-extractor": "workspace:*",
1414
"api-extractor-lib1-test": "workspace:*",
1515
"fs-extra": "~7.0.1",
16-
"typescript": "~4.8.4"
16+
"typescript": "~5.0.4"
1717
}
1818
}

build-tests/eslint-7-test/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"@rushstack/eslint-config": "workspace:*",
1414
"@rushstack/heft": "workspace:*",
1515
"@types/node": "14.18.36",
16-
"@typescript-eslint/parser": "~5.38.0",
16+
"@typescript-eslint/parser": "~5.59.2",
1717
"eslint": "~7.30.0",
18-
"typescript": "~4.8.4"
18+
"typescript": "~5.0.4"
1919
}
2020
}

0 commit comments

Comments
 (0)