mirror of
https://github.com/kevinhwang91/promise-async
synced 2024-09-16 13:24:04 +02:00
fix(typings): onRejected
in catch
return a val or promise
This commit is contained in:
parent
94f6f03c6c
commit
9d5d173f81
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ function Promise:new(executor) end
|
|||
function Promise:thenCall(onFulfilled, onRejected) end
|
||||
|
||||
---Attaches a callback for only the rejection of the Promise.
|
||||
---@param onRejected? fun(reason: any) The callback to execute when the Promise is rejected.
|
||||
---@param onRejected? fun(reason: any): any The callback to execute when the Promise is rejected.
|
||||
---@return Promise promise A Promise for the completion of the callback.
|
||||
function Promise:catch(onRejected) end
|
||||
|
||||
|
|
Loading…
Reference in a new issue