Skip to content

Commit 408a91e

Browse files
authored
Update submodule to new upstream target porting branch (#702)
1 parent 9dd679a commit 408a91e

File tree

718 files changed

+1305
-20802
lines changed

Some content is hidden

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

718 files changed

+1305
-20802
lines changed

Diff for: .gitmodules

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
[submodule "_submodules/TypeScript"]
22
path = _submodules/TypeScript
33
url = https://github.com/microsoft/TypeScript.git
4+
branch = tsgo-port

Diff for: _submodules/TypeScript

Submodule TypeScript updated 834 files
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,11 @@
11
--- old.ambientExportDefaultErrors.types
22
+++ new.ambientExportDefaultErrors.types
3-
@@= skipped -31, +31 lines =@@
4-
>"indirect" : typeof import("indirect")
5-
3+
@@= skipped -33, +33 lines =@@
64
export default typeof Foo.default;
7-
->typeof Foo.default : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function"
8-
+>typeof Foo.default : "bigint" | "boolean" | "function" | "number" | "object" | "string" | "symbol" | "undefined"
5+
>typeof Foo.default : "bigint" | "boolean" | "function" | "number" | "object" | "string" | "symbol" | "undefined"
96
>Foo.default : number
107
->Foo : typeof Foo
118
+>Foo : typeof import("foo")
129
>default : number
1310
}
1411

15-
@@= skipped -12, +12 lines =@@
16-
>"indirect2" : typeof import("indirect2")
17-
18-
export = typeof Foo2;
19-
->typeof Foo2 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function"
20-
+>typeof Foo2 : "bigint" | "boolean" | "function" | "number" | "object" | "string" | "symbol" | "undefined"
21-
>Foo2 : number
22-
}
23-

Diff for: testdata/baselines/reference/submodule/compiler/anonymousClassExpression1.types.diff

-11
This file was deleted.

Diff for: testdata/baselines/reference/submodule/compiler/arrayAssignmentTest1.errors.txt.diff

-45
This file was deleted.

Diff for: testdata/baselines/reference/submodule/compiler/arrayBestCommonTypes.types.diff

-40
This file was deleted.

Diff for: testdata/baselines/reference/submodule/compiler/arrayConcat3.types.diff

-10
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,3 @@
99
>a : Fn<T>[]
1010
>b : Fn<T1>[]
1111

12-
b.concat(a);
13-
>b.concat(a) : Fn<T1>[]
14-
->b.concat : { (...items: ConcatArray<Fn<T1>>[]): Fn<T1>[]; (...items: (Fn<T1> | ConcatArray<Fn<T1>>)[]): Fn<T1>[]; }
15-
+>b.concat : { (...items: ConcatArray<Fn<T1>>[]): Fn<T1>[]; (...items: (ConcatArray<Fn<T1>> | Fn<T1>)[]): Fn<T1>[]; }
16-
>b : Fn<T1>[]
17-
->concat : { (...items: ConcatArray<Fn<T1>>[]): Fn<T1>[]; (...items: (Fn<T1> | ConcatArray<Fn<T1>>)[]): Fn<T1>[]; }
18-
+>concat : { (...items: ConcatArray<Fn<T1>>[]): Fn<T1>[]; (...items: (ConcatArray<Fn<T1>> | Fn<T1>)[]): Fn<T1>[]; }
19-
>a : Fn<T>[]
20-
}
21-

Diff for: testdata/baselines/reference/submodule/compiler/arrayDestructuringInSwitch1.types.diff

-11
This file was deleted.

Diff for: testdata/baselines/reference/submodule/compiler/arrayEvery.types.diff

-11
This file was deleted.

Diff for: testdata/baselines/reference/submodule/compiler/arrayFind.types.diff

-11
This file was deleted.

Diff for: testdata/baselines/reference/submodule/compiler/arrayFlatNoCrashInference.types.diff

+2-10
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
11
--- old.arrayFlatNoCrashInference.types
22
+++ new.arrayFlatNoCrashInference.types
3-
@@= skipped -1, +1 lines =@@
4-
5-
=== arrayFlatNoCrashInference.ts ===
6-
function foo<T>(arr: T[], depth: number) {
7-
->foo : <T>(arr: T[], depth: number) => FlatArray<T, 0 | 1 | -1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20>[]
8-
+>foo : <T>(arr: T[], depth: number) => FlatArray<T, -1 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20>[]
9-
>arr : T[]
10-
>depth : number
3+
@@= skipped -7, +7 lines =@@
114

125
return arr.flat(depth);
13-
->arr.flat(depth) : FlatArray<T, 0 | 1 | -1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20>[]
6+
>arr.flat(depth) : FlatArray<T, -1 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20>[]
147
->arr.flat : <A, D extends number = 1>(this: A, depth?: D | undefined) => FlatArray<A, D>[]
15-
+>arr.flat(depth) : FlatArray<T, -1 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20>[]
168
+>arr.flat : <A, D extends number>(this: A, depth?: D | undefined) => FlatArray<A, D>[]
179
>arr : T[]
1810
->flat : <A, D extends number = 1>(this: A, depth?: D | undefined) => FlatArray<A, D>[]

Diff for: testdata/baselines/reference/submodule/compiler/arrayFlatNoCrashInferenceDeclarations.js.diff

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
-
1212
-
1313
-//// [arrayFlatNoCrashInferenceDeclarations.d.ts]
14-
-declare function foo<T>(arr: T[], depth: number): FlatArray<T, 0 | 1 | -1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20>[];
14+
-declare function foo<T>(arr: T[], depth: number): FlatArray<T, -1 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20>[];

Diff for: testdata/baselines/reference/submodule/compiler/arrayFlatNoCrashInferenceDeclarations.types.diff

+2-10
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
11
--- old.arrayFlatNoCrashInferenceDeclarations.types
22
+++ new.arrayFlatNoCrashInferenceDeclarations.types
3-
@@= skipped -1, +1 lines =@@
4-
5-
=== arrayFlatNoCrashInferenceDeclarations.ts ===
6-
function foo<T>(arr: T[], depth: number) {
7-
->foo : <T>(arr: T[], depth: number) => FlatArray<T, 0 | 1 | -1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20>[]
8-
+>foo : <T>(arr: T[], depth: number) => FlatArray<T, -1 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20>[]
9-
>arr : T[]
10-
>depth : number
3+
@@= skipped -7, +7 lines =@@
114

125
return arr.flat(depth);
13-
->arr.flat(depth) : FlatArray<T, 0 | 1 | -1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20>[]
6+
>arr.flat(depth) : FlatArray<T, -1 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20>[]
147
->arr.flat : <A, D extends number = 1>(this: A, depth?: D | undefined) => FlatArray<A, D>[]
15-
+>arr.flat(depth) : FlatArray<T, -1 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20>[]
168
+>arr.flat : <A, D extends number>(this: A, depth?: D | undefined) => FlatArray<A, D>[]
179
>arr : T[]
1810
->flat : <A, D extends number = 1>(this: A, depth?: D | undefined) => FlatArray<A, D>[]

Diff for: testdata/baselines/reference/submodule/compiler/arrayLiteralComments.types.diff

-13
This file was deleted.

Diff for: testdata/baselines/reference/submodule/compiler/arrayLiteralContextualType.types.diff

-44
This file was deleted.

Diff for: testdata/baselines/reference/submodule/compiler/arrayconcat.types.diff

-11
This file was deleted.

Diff for: testdata/baselines/reference/submodule/compiler/arrowFunctionParsingDoesNotConfuseParenthesizedObjectForArrowHead.types.diff

-28
This file was deleted.

Diff for: testdata/baselines/reference/submodule/compiler/assignmentToAnyArrayRestParameters.types.diff

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
>T01 : any
55

66
type T02 = string[][K | "0"];
7-
->T02 : string[][K | "0"]
7+
->T02 : string[]["0" | K]
88
+>T02 : T02
99

1010
type T10 = T["0"];
@@ -16,7 +16,7 @@
1616
+>T11 : T11
1717

1818
type T12 = T[K | "0"];
19-
->T12 : T[K | "0"]
19+
->T12 : T["0" | K]
2020
+>T12 : T12
2121
}
2222

0 commit comments

Comments
 (0)