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 7571774 commit f13ba94Copy full SHA for f13ba94
src/node/util.ts
@@ -187,7 +187,7 @@ export const open = async (url: string): Promise<void> => {
187
url = url.replace(/&/g, "^&")
188
}
189
const proc = cp.spawn(command, [...args, url], options)
190
- await new Promise((resolve, reject) => {
+ await new Promise<void>((resolve, reject) => {
191
proc.on("error", reject)
192
proc.on("close", (code) => {
193
return code !== 0 ? reject(new Error(`Failed to open with code ${code}`)) : resolve()
0 commit comments