Skip to content

Commit 7df6aec

Browse files
authored
Change catch parameter type to Throwable
Updated the parameter type for the catch function in exceptionally.
1 parent c6a1f23 commit 7df6aec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/lualink/globals.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ function synchronized(func) end
2121

2222
--- Let's you try-catch Java exceptions thrown when called from Lua
2323
--- @param try function
24-
--- @param catch fun(throwable: java.lang.Object)
24+
--- @param catch fun(throwable: java.lang.Throwable)
2525
function exceptionally(try: function, catch: function)

0 commit comments

Comments
 (0)