Skip to content

Commit

Permalink
Merge pull request #2496 from bobrippling/typescript/promise-resolve
Browse files Browse the repository at this point in the history
typescript: allow Promise.resolve() [no args]
  • Loading branch information
gfwilliams committed Apr 25, 2024
2 parents ac6658b + c60e556 commit 3d0a317
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jswrap_promise.c
Expand Up @@ -430,7 +430,7 @@ JsVar *jswrap_promise_all(JsVar *arr) {
["promises","JsVar","Data to pass to the `.then` handler"]
],
"return" : ["JsVar","A new Promise"],
"typescript": "resolve<T extends any>(promises: T): Promise<T>;"
"typescript": "resolve<T extends any>(promises?: T): Promise<T>;"
}
Return a new promise that is already resolved (at idle it'll call `.then`)
*/
Expand Down

0 comments on commit 3d0a317

Please sign in to comment.