We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
onRejected
catch
1 parent 94f6f03 commit 9d5d173Copy full SHA for 9d5d173
typings/promise.lua
@@ -21,7 +21,7 @@ function Promise:new(executor) end
21
function Promise:thenCall(onFulfilled, onRejected) end
22
23
---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.
+---@param onRejected? fun(reason: any): any The callback to execute when the Promise is rejected.
25
---@return Promise promise A Promise for the completion of the callback.
26
function Promise:catch(onRejected) end
27
0 commit comments