Skip to content

Commit b0e292f

Browse files
Support "undefined" in IDL
1 parent 3f9db08 commit b0e292f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export const bufferSourceTypes = new Set(["ArrayBuffer", "ArrayBufferView", "Dat
55
export const integerTypes = new Set(["byte", "octet", "short", "unsigned short", "long", "unsigned long", "long long", "unsigned long long"]);
66
export const stringTypes = new Set(["ByteString", "DOMString", "USVString", "CSSOMString"]);
77
const floatTypes = new Set(["float", "unrestricted float", "double", "unrestricted double"]);
8-
const sameTypes = new Set(["any", "boolean", "Date", "Function", "Promise", "void"]);
8+
const sameTypes = new Set(["any", "boolean", "Date", "Function", "Promise", "undefined", "void"]);
99
export const baseTypeConversionMap = new Map<string, string>([
1010
...[...bufferSourceTypes].map(type => [type, type] as [string, string]),
1111
...[...integerTypes].map(type => [type, "number"] as [string, string]),

0 commit comments

Comments
 (0)