Update spec.types.test.ts

This commit is contained in:
Olivier Chafik 2025-07-03 19:41:51 +01:00
commit d57d35e348
No known key found for this signature in database

View file

@ -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(