Skip to content

Commit 0a5096a

Browse files
committed
Accept baselines
1 parent 74df98f commit 0a5096a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

tests/baselines/reference/destructuringParameterDeclaration6.types

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
// Error
99
function a({while}) { }
10-
>a : ({ while }: { while: any; }) => void
10+
>a : ({ while: }: { while: any; }) => void
1111
>while : any
1212
> : any
1313

@@ -42,32 +42,32 @@ function a7(...a: string) { }
4242

4343
a({ while: 1 });
4444
>a({ while: 1 }) : void
45-
>a : ({ while }: { while: any; }) => void
45+
>a : ({ while: }: { while: any; }) => void
4646
>{ while: 1 } : { while: number; }
4747
>while : number
4848
>1 : 1
4949

5050
// No Error
5151
function b1({public: x}) { }
52-
>b1 : ({ public }: { public: any; }) => void
52+
>b1 : ({ public: x }: { public: any; }) => void
5353
>public : any
5454
>x : any
5555

5656
function b2({while: y}) { }
57-
>b2 : ({ while }: { while: any; }) => void
57+
>b2 : ({ while: y }: { while: any; }) => void
5858
>while : any
5959
>y : any
6060

6161
b1({ public: 1 });
6262
>b1({ public: 1 }) : void
63-
>b1 : ({ public }: { public: any; }) => void
63+
>b1 : ({ public: x }: { public: any; }) => void
6464
>{ public: 1 } : { public: number; }
6565
>public : number
6666
>1 : 1
6767

6868
b2({ while: 1 });
6969
>b2({ while: 1 }) : void
70-
>b2 : ({ while }: { while: any; }) => void
70+
>b2 : ({ while: y }: { while: any; }) => void
7171
>{ while: 1 } : { while: number; }
7272
>while : number
7373
>1 : 1

tests/baselines/reference/syntheticDefaultExportsWithDynamicImports.types

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import("package").then(({default: foo}) => foo(42));
1313
>import("package") : Promise<{ default: (x: number) => string; }>
1414
>"package" : "package"
1515
>then : <TResult1 = { default: (x: number) => string; }, TResult2 = never>(onfulfilled?: (value: { default: (x: number) => string; }) => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => Promise<TResult1 | TResult2>
16-
>({default: foo}) => foo(42) : ({ default }: { default: (x: number) => string; }) => string
16+
>({default: foo}) => foo(42) : ({ default: foo }: { default: (x: number) => string; }) => string
1717
>default : any
1818
>foo : (x: number) => string
1919
>foo(42) : string

0 commit comments

Comments
 (0)