Hilbish/emmyLuaDocs/bait.lua

21 lines
473 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
2022-04-05 01:35:10 +00:00
function bait.throw(name, ...) end
2022-02-25 22:00:39 +00:00
return bait