Hilbish/emmyLuaDocs/bait.lua

15 lines
317 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
function bait.catch() end
--- Same as catch, but only runs the `cb` once and then removes the hook
function bait.catchOnce() end
--- Throws a hook with `name` with the provided `args`
function bait.throw() end
return bait