We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69e11d8 commit 0800b1aCopy full SHA for 0800b1a
types/webidl.d.ts
@@ -84,7 +84,7 @@ interface WebidlUtil {
84
*/
85
Stringify (V: any): string
86
87
- MakeTypeAssertion <I extends abstract new (...args: any[]) => any>(I: I): (arg: any) => arg is InstanceType<I>
+ MakeTypeAssertion <I>(I: I): (arg: any) => arg is I
88
}
89
90
interface WebidlConverters {
@@ -176,7 +176,7 @@ interface WebidlConverters {
176
[Key: string]: (...args: any[]) => unknown
177
178
179
-type IsAssertion<T extends abstract new (...args: any[]) => any> = (arg: any) => arg is InstanceType<T>
+type IsAssertion<T> = (arg: any) => arg is InstanceType<T>
180
181
interface WebidlIs {
182
Request: IsAssertion<undici.Request>
0 commit comments