Skip to content

Commit a0df1e3

Browse files
committed
Accept new baselines
1 parent 15eaba2 commit a0df1e3

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

tests/baselines/reference/strictFunctionTypes1.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ declare function fo(x: Object): void;
5050
declare function fs(x: string): void;
5151
declare function fx(f: (x: "def") => void): void;
5252
declare const x1: (x: string) => void;
53-
declare const x2: string;
54-
declare const x3: Object;
53+
declare const x2 = "abc";
54+
declare const x3: string;
5555
declare const x4: Func<string>;
5656
declare const never: never;
5757
declare const x10: string;
58-
declare const x11: Object;
58+
declare const x11: "def";
5959
declare function foo<T>(a: ReadonlyArray<T>): T;
6060
declare let x: never;

tests/baselines/reference/strictFunctionTypes1.types

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,16 @@ const x1 = f1(fo, fs); // (x: string) => void
5353
>fs : (x: string) => void
5454

5555
const x2 = f2("abc", fo, fs); // "abc"
56-
>x2 : string
57-
>f2("abc", fo, fs) : string
56+
>x2 : "abc"
57+
>f2("abc", fo, fs) : "abc"
5858
>f2 : <T>(obj: T, f1: (x: T) => void, f2: (x: T) => void) => T
5959
>"abc" : "abc"
6060
>fo : (x: Object) => void
6161
>fs : (x: string) => void
6262

6363
const x3 = f3("abc", fo, fx); // "abc" | "def"
64-
>x3 : Object
65-
>f3("abc", fo, fx) : Object
64+
>x3 : "def" | "abc"
65+
>f3("abc", fo, fx) : "def" | "abc"
6666
>f3 : <T>(obj: T, f1: (x: T) => void, f2: (f: (x: T) => void) => void) => T
6767
>"abc" : "abc"
6868
>fo : (x: Object) => void
@@ -87,8 +87,8 @@ const x10 = f2(never, fo, fs); // string
8787
>fs : (x: string) => void
8888

8989
const x11 = f3(never, fo, fx); // "def"
90-
>x11 : Object
91-
>f3(never, fo, fx) : Object
90+
>x11 : "def"
91+
>f3(never, fo, fx) : "def"
9292
>f3 : <T>(obj: T, f1: (x: T) => void, f2: (f: (x: T) => void) => void) => T
9393
>never : never
9494
>fo : (x: Object) => void

0 commit comments

Comments
 (0)