Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f13ba94

Browse files
committedJan 21, 2021
fix(TS error): add void to promise in util
1 parent 7571774 commit f13ba94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/node/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ export const open = async (url: string): Promise<void> => {
187187
url = url.replace(/&/g, "^&")
188188
}
189189
const proc = cp.spawn(command, [...args, url], options)
190-
await new Promise((resolve, reject) => {
190+
await new Promise<void>((resolve, reject) => {
191191
proc.on("error", reject)
192192
proc.on("close", (code) => {
193193
return code !== 0 ? reject(new Error(`Failed to open with code ${code}`)) : resolve()

0 commit comments

Comments
 (0)
Please sign in to comment.