Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
KhafraDev committed Oct 7, 2024
1 parent 2738f2b commit fc4e832
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/webidl.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ interface WebidlUtil {
*/
Stringify (V: any): string

MakeTypeAssertion <T extends new () => any>(Prototype: T['prototype']): (arg: any) => arg is T
MakeTypeAssertion <T extends { prototype: T }>(Prototype: T['prototype']): (arg: any) => arg is T
}

interface WebidlConverters {
Expand Down Expand Up @@ -231,7 +231,7 @@ export interface Webidl {
V: unknown,
prefix: string,
argument: string
) => asserts V is typeof cls
) => asserts V is Interface

// TODO(@KhafraDev): a type could likely be implemented that can infer the return type
// from the converters given?
Expand Down

0 comments on commit fc4e832

Please sign in to comment.