Skip to content

Commit 8b988c9

Browse files
saschanazabu-co
andauthored
Pin to typescript 20200908 (#907)
Co-Authored-By: abuco <[email protected]> Co-authored-by: abuco <[email protected]>
1 parent f7b3770 commit 8b988c9

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

package.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@
1010
"test": "tsc -p ./tsconfig.json && node ./lib/index.js && node ./lib/test.js"
1111
},
1212
"dependencies": {
13-
"@types/jsdom": "^11.12.0",
14-
"@types/node": "^9.6.56",
15-
"@types/node-fetch": "^1.6.9",
16-
"@types/webidl2": "^23.12.1",
13+
"@types/jsdom": "^16.2.4",
14+
"@types/node": "^14.6.4",
15+
"@types/node-fetch": "^2.5.7",
16+
"@types/webidl2": "^23.13.2",
1717
"cpx2": "^2.0.0",
18-
"jsdom": "^11.12.0",
19-
"node-fetch": "^2.6.0",
20-
"print-diff": "^0.1.1",
18+
"jsdom": "^16.4.0",
19+
"node-fetch": "^2.6.1",
20+
"print-diff": "^1.0.0",
2121
"styleless-innertext": "^1.1.2",
22-
"typescript": "next",
23-
"webidl2": "^23.12.1"
22+
"typescript": "4.1.0-dev.20200908",
23+
"webidl2": "^23.13.0"
2424
}
2525
}

src/widlprocess.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export function convert(text: string, commentMap: Record<string, string>) {
3333
browser.namespaces!.push(convertNamespace(rootType, commentMap));
3434
}
3535
else if (rootType.type === "callback interface") {
36-
browser["callback-interfaces"]!.interface[rootType.name] = convertInterface(rootType, commentMap);
36+
browser["callback-interfaces"]!.interface[rootType.name] = convertInterfaceCommon(rootType, commentMap);
3737
}
3838
else if (rootType.type === "callback") {
3939
browser["callback-functions"]!["callback-function"][rootType.name]
@@ -109,7 +109,7 @@ function addComments(obj: any, commentMap: Record<string, string>, container: st
109109
}
110110
}
111111

112-
function convertInterfaceCommon(i: webidl2.InterfaceType | webidl2.InterfaceMixinType, commentMap: Record<string, string>) {
112+
function convertInterfaceCommon(i: webidl2.InterfaceType | webidl2.InterfaceMixinType | webidl2.CallbackInterfaceType, commentMap: Record<string, string>) {
113113
const result: Browser.Interface = {
114114
name: i.name,
115115
extends: "Object",

0 commit comments

Comments
 (0)