You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
792 B
16 lines
792 B
---@meta
|
|
---@diagnostic disable: missing-return
|
|
-- Type stub for the sandboxed `require`. The stock `package` library does not
|
|
-- exist in `a` (it is disabled in .luarc.json, which also removes the stock
|
|
-- `require` definition — this stub replaces it). Reference: docs/require.md
|
|
--
|
|
-- Names are dot-separated (`require "lib.helper"` → lib/helper.lua or
|
|
-- lib/helper/init.lua), resolved against the main script's directory and each
|
|
-- entry of $A_INCLUDE_PATHS. Each module runs once; the result is cached.
|
|
|
|
---Load a module. Returns the module's value and, unlike stock Lua's loader
|
|
---data, the resolved file path as the second value.
|
|
---@param modname string dot-separated module name
|
|
---@return any module
|
|
---@return string path the resolved file path
|
|
function require(modname) end
|
|
|