-
-
Notifications
You must be signed in to change notification settings - Fork 374
Open
Description
Similar to how you can capture class names in generics and annotate a function to then return that class it would be cool if you could do the same for functions. In a modloader we have a hooking function like this:
hook(object, "function_name", function(...) end)
which makes a function run after the hooked function on an object with the same parameters as the original function.
I understand if thats too much effort to implement but it would be nice if it was somehow possible to annotate the second argument of the hook function to be the name of a function on object
.
Metadata
Metadata
Assignees
Labels
No labels