diff options
Diffstat (limited to 'meta/whimsical/basic.lua')
-rw-r--r-- | meta/whimsical/basic.lua | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/meta/whimsical/basic.lua b/meta/whimsical/basic.lua index 8f25d19f..9075a0e9 100644 --- a/meta/whimsical/basic.lua +++ b/meta/whimsical/basic.lua @@ -11,7 +11,7 @@ arg = {} ---@param ... any ---@return T ---@return any ... => args[reti + 1] ----@error => args[1].istruly +---@throw => args[1].isFalsy ---@narrow v => args[1].truly function assert(v, message, ...) end @@ -36,3 +36,15 @@ function assert(v, message, ...) end ---@prototype ]] function collectgarbage(...) end + +---#DES 'dofile' +---@param filename? string +---@return any +---@custom dofile +function dofile(filename) end + +---#DES 'error' +---@param message any +---@param level? integer +---@throw +function error(message, level) end |