Update spec.types.test.ts
This commit is contained in:
parent
b3c5d27c70
commit
d57d35e348
1 changed files with 2 additions and 6 deletions
|
|
@ -12,12 +12,8 @@ type RemovePassthrough<T> = T extends object
|
|||
? T extends Array<infer U>
|
||||
? Array<RemovePassthrough<U>>
|
||||
: T extends Function
|
||||
? T
|
||||
: {
|
||||
[K in keyof T as string extends K ? never : number extends K ? never : K]: RemovePassthrough<T[K]>;
|
||||
}
|
||||
: unknown extends T
|
||||
? (object | undefined)
|
||||
? T
|
||||
: {[K in keyof T as string extends K ? never : K]: RemovePassthrough<T[K]>}
|
||||
: T;
|
||||
|
||||
function checkCancelledNotification(
|
||||
|
|
|
|||
Loading…
Reference in a new issue