Skip to content

Commit 0800b1a

Browse files
committed
fixup type
1 parent 69e11d8 commit 0800b1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

types/webidl.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ interface WebidlUtil {
8484
*/
8585
Stringify (V: any): string
8686

87-
MakeTypeAssertion <I extends abstract new (...args: any[]) => any>(I: I): (arg: any) => arg is InstanceType<I>
87+
MakeTypeAssertion <I>(I: I): (arg: any) => arg is I
8888
}
8989

9090
interface WebidlConverters {
@@ -176,7 +176,7 @@ interface WebidlConverters {
176176
[Key: string]: (...args: any[]) => unknown
177177
}
178178

179-
type IsAssertion<T extends abstract new (...args: any[]) => any> = (arg: any) => arg is InstanceType<T>
179+
type IsAssertion<T> = (arg: any) => arg is InstanceType<T>
180180

181181
interface WebidlIs {
182182
Request: IsAssertion<undici.Request>

0 commit comments

Comments
 (0)