Skip to content

Commit 3bc5387

Browse files
author
qucchia
committed
TypeScript: if a return type is Promise, convert to Promise<void>
(Used to be Promise<any>)
1 parent f3d137b commit 3bc5387

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/build_types.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ function getBasicType(type) {
111111
if (type == "JsVarArray") return "any";
112112
if (type == "JsVar") return "any";
113113
if (type == "Array") return "any[]";
114-
if (type == "Promise") return "Promise<any>";
114+
if (type == "Promise") return "Promise<void>";
115115
return type;
116116
}
117117

0 commit comments

Comments
 (0)