Skip to content

Commit

Permalink
Add type information to Event.Register
Browse files Browse the repository at this point in the history
  • Loading branch information
sturnclaw committed Sep 18, 2024
1 parent 60625ed commit cf2cc87
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions data/libs/Event.lua
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ Event.New = function()
--
-- stable
--
---@param name string
---@param cb function
self.Register = function (name, cb)
super.Register(self, name, package.modulename(2), cb)
end
Expand Down

0 comments on commit cf2cc87

Please sign in to comment.