Accept new baselines
This commit is contained in:
parent
fd8f990449
commit
6270ccc4b0
2 changed files with 7 additions and 7 deletions
|
@ -134,7 +134,7 @@ declare function app3<State, Actions extends ActionsArray<State>>(obj: Options<S
|
|||
app3({
|
||||
>app3({ state: 100, actions: [ s => s // Should be typed number => number ], view: (s, a) => undefined as any,}) : void
|
||||
>app3 : <State, Actions extends ActionsArray<State>>(obj: Options<State, Actions>) => void
|
||||
>{ state: 100, actions: [ s => s // Should be typed number => number ], view: (s, a) => undefined as any,} : { state: number; actions: ((s: number) => number)[]; view: (s: number, a: ActionsArray<State>) => any; }
|
||||
>{ state: 100, actions: [ s => s // Should be typed number => number ], view: (s, a) => undefined as any,} : { state: number; actions: ((s: number) => number)[]; view: (s: number, a: ActionsArray<number>) => any; }
|
||||
|
||||
state: 100,
|
||||
>state : number
|
||||
|
@ -151,10 +151,10 @@ app3({
|
|||
|
||||
],
|
||||
view: (s, a) => undefined as any,
|
||||
>view : (s: number, a: ActionsArray<State>) => any
|
||||
>(s, a) => undefined as any : (s: number, a: ActionsArray<State>) => any
|
||||
>view : (s: number, a: ActionsArray<number>) => any
|
||||
>(s, a) => undefined as any : (s: number, a: ActionsArray<number>) => any
|
||||
>s : number
|
||||
>a : ActionsArray<State>
|
||||
>a : ActionsArray<number>
|
||||
>undefined as any : any
|
||||
>undefined : undefined
|
||||
|
||||
|
|
|
@ -275,13 +275,13 @@ type Bar<T> = T extends Foo<infer X, infer Y> ? Foo<X, Y> : never;
|
|||
>Bar : Bar<T>
|
||||
|
||||
type T90 = Bar<[string, string]>; // [string, string]
|
||||
>T90 : Foo<X, Y>
|
||||
>T90 : Foo<string, string>
|
||||
|
||||
type T91 = Bar<[string, "a"]>; // [string, "a"]
|
||||
>T91 : Foo<X, Y>
|
||||
>T91 : Foo<string, "a">
|
||||
|
||||
type T92 = Bar<[string, "a"] & { x: string }>; // [string, "a"]
|
||||
>T92 : Foo<X, Y>
|
||||
>T92 : Foo<string, "a">
|
||||
>x : string
|
||||
|
||||
type T93 = Bar<["a", string]>; // never
|
||||
|
|
Loading…
Reference in a new issue