Skip to content

Commit 35443bc

Browse files
ochafikchenxi-null
authored andcommitted
Update spec.types.test.ts
1 parent 4ec9d44 commit 35443bc

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/spec.types.test.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,8 @@ type RemovePassthrough<T> = T extends object
1212
? T extends Array<infer U>
1313
? Array<RemovePassthrough<U>>
1414
: T extends Function
15-
? T
16-
: {
17-
[K in keyof T as string extends K ? never : number extends K ? never : K]: RemovePassthrough<T[K]>;
18-
}
19-
: unknown extends T
20-
? (object | undefined)
15+
? T
16+
: {[K in keyof T as string extends K ? never : K]: RemovePassthrough<T[K]>}
2117
: T;
2218

2319
function checkCancelledNotification(

0 commit comments

Comments
 (0)