Fix 822: Advanced Types - any should be never. PR823
This commit is contained in:
parent
888ce47c5d
commit
d377cd6a11
@ -1188,13 +1188,13 @@ type T12 = ReturnType<(<T>() => T)>; // {}
|
||||
type T13 = ReturnType<(<T extends U, U extends number[]>() => T)>; // number[]
|
||||
type T14 = ReturnType<typeof f1>; // { a: number, b: string }
|
||||
type T15 = ReturnType<any>; // any
|
||||
type T16 = ReturnType<never>; // any
|
||||
type T16 = ReturnType<never>; // never
|
||||
type T17 = ReturnType<string>; // Error
|
||||
type T18 = ReturnType<Function>; // Error
|
||||
|
||||
type T20 = InstanceType<typeof C>; // C
|
||||
type T21 = InstanceType<any>; // any
|
||||
type T22 = InstanceType<never>; // any
|
||||
type T22 = InstanceType<never>; // never
|
||||
type T23 = InstanceType<string>; // Error
|
||||
type T24 = InstanceType<Function>; // Error
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user