Skip to content

Commit 9d5d173

Browse files
committed
fix(typings): onRejected in catch return a val or promise
1 parent 94f6f03 commit 9d5d173

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

typings/promise.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function Promise:new(executor) end
2121
function Promise:thenCall(onFulfilled, onRejected) end
2222

2323
---Attaches a callback for only the rejection of the Promise.
24-
---@param onRejected? fun(reason: any) The callback to execute when the Promise is rejected.
24+
---@param onRejected? fun(reason: any): any The callback to execute when the Promise is rejected.
2525
---@return Promise promise A Promise for the completion of the callback.
2626
function Promise:catch(onRejected) end
2727

0 commit comments

Comments
 (0)