Hilbish/emmyLuaDocs/bait.lua

21 lines
468 B
Lua
Raw Normal View History

2022-02-25 22:00:39 +00:00
--- @meta
local bait = {}
--- Catches a hook with `name`. Runs the `cb` when it is thrown
2022-02-25 22:15:49 +00:00
--- @param name string
--- @param cb function
function bait.catch(name, cb) end
2022-02-25 22:00:39 +00:00
--- Same as catch, but only runs the `cb` once and then removes the hook
2022-02-25 22:15:49 +00:00
--- @param name string
--- @param cb function
function bait.catchOnce(name, cb) end
2022-02-25 22:00:39 +00:00
--- Throws a hook with `name` with the provided `args`
2022-02-25 22:15:49 +00:00
--- @param name string
--- @vararg any
function bait.throw(name) end
2022-02-25 22:00:39 +00:00
return bait