fix(typings): onRejected in catch return a val or promise

This commit is contained in:
kevinhwang91 2024-02-27 08:18:44 +08:00
parent 94f6f03c6c
commit 9d5d173f81

View file

@ -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