Skip to content

Commit f9a317e

Browse files
author
Kanchalai Tanglertsampan
committed
Update baselines
1 parent f2e3439 commit f9a317e

7 files changed

+21
-17
lines changed

tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters1.types

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export type Bar<X, Y> = () => [X, Y];
88
>Y : Y
99

1010
export type Foo<Y> = Bar<any, Y>;
11-
>Foo : Bar<any, Y>
11+
>Foo : () => [any, Y]
1212
>Y : Y
1313
>Bar : Bar<X, Y>
1414
>Y : Y
@@ -17,6 +17,6 @@ export const y = (x: Foo<string>) => 1
1717
>y : (x: () => [any, string]) => number
1818
>(x: Foo<string>) => 1 : (x: () => [any, string]) => number
1919
>x : () => [any, string]
20-
>Foo : Bar<any, Y>
20+
>Foo : () => [any, Y]
2121
>1 : 1
2222

tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters2.types

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export type Bar<X, Y, Z> = () => [X, Y, Z];
1010
>Z : Z
1111

1212
export type Baz<M, N> = Bar<M, string, N>;
13-
>Baz : Bar<M, string, N>
13+
>Baz : () => [M, string, N]
1414
>M : M
1515
>N : N
1616
>Bar : Bar<X, Y, Z>
@@ -20,7 +20,7 @@ export type Baz<M, N> = Bar<M, string, N>;
2020
export type Baa<Y> = Baz<boolean, Y>;
2121
>Baa : () => [boolean, string, Y]
2222
>Y : Y
23-
>Baz : Bar<M, string, N>
23+
>Baz : () => [M, string, N]
2424
>Y : Y
2525

2626
export const y = (x: Baa<number>) => 1

tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters3.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@ function bar() {
1818
declare type Foo<T> = {
1919
foo<U>(): Foo<U>;
2020
};
21-
declare function bar(): Foo<number>;
21+
declare function bar(): {
22+
foo<U>(): any;
23+
};

tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters3.types

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ type Foo<T> = {
55
>T : T
66

77
foo<U>(): Foo<U>
8-
>foo : <U>() => Foo<U>
8+
>foo : <U>() => { foo<U>(): any; }
99
>U : U
1010
>Foo : Foo<T>
1111
>U : U
1212

1313
};
1414
function bar() {
15-
>bar : () => Foo<number>
15+
>bar : () => { foo<U>(): any; }
1616

1717
return {} as Foo<number>;
18-
>{} as Foo<number> : Foo<number>
18+
>{} as Foo<number> : { foo<U>(): any; }
1919
>{} : {}
2020
>Foo : Foo<T>
2121
}

tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters4.types

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ type Foo<T, Y> = {
66
>Y : Y
77

88
foo<U, J>(): Foo<U, J>
9-
>foo : <U, J>() => Foo<U, J>
9+
>foo : <U, J>() => { foo<U, J>(): any; }
1010
>U : U
1111
>J : J
1212
>Foo : Foo<T, Y>
@@ -15,7 +15,7 @@ type Foo<T, Y> = {
1515

1616
};
1717
type SubFoo<R> = Foo<string, R>;
18-
>SubFoo : Foo<string, R>
18+
>SubFoo : { foo<U, J>(): any; }
1919
>R : R
2020
>Foo : Foo<T, Y>
2121
>R : R
@@ -26,6 +26,6 @@ function foo() {
2626
return {} as SubFoo<number>;
2727
>{} as SubFoo<number> : { foo<U, J>(): any; }
2828
>{} : {}
29-
>SubFoo : Foo<string, R>
29+
>SubFoo : { foo<U, J>(): any; }
3030
}
3131

tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters6.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,6 @@ declare type Foo<T, Y> = {
2121
foo<U, J>(): Foo<U, J>;
2222
};
2323
declare type SubFoo<R, S> = Foo<S, R>;
24-
declare function foo(): Foo<number, string>;
24+
declare function foo(): {
25+
foo<U, J>(): any;
26+
};

tests/baselines/reference/declarationEmitTypeAliasWithTypeParameters6.types

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ type Foo<T, Y> = {
66
>Y : Y
77

88
foo<U, J>(): Foo<U, J>
9-
>foo : <U, J>() => Foo<U, J>
9+
>foo : <U, J>() => { foo<U, J>(): any; }
1010
>U : U
1111
>J : J
1212
>Foo : Foo<T, Y>
@@ -15,19 +15,19 @@ type Foo<T, Y> = {
1515

1616
};
1717
type SubFoo<R, S> = Foo<S, R>;
18-
>SubFoo : Foo<S, R>
18+
>SubFoo : { foo<U, J>(): any; }
1919
>R : R
2020
>S : S
2121
>Foo : Foo<T, Y>
2222
>S : S
2323
>R : R
2424

2525
function foo() {
26-
>foo : () => Foo<number, string>
26+
>foo : () => { foo<U, J>(): any; }
2727

2828
return {} as SubFoo<number, string>;
29-
>{} as SubFoo<number, string> : Foo<number, string>
29+
>{} as SubFoo<number, string> : { foo<U, J>(): any; }
3030
>{} : {}
31-
>SubFoo : Foo<S, R>
31+
>SubFoo : { foo<U, J>(): any; }
3232
}
3333

0 commit comments

Comments
 (0)