mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-04-20 09:43:15 +00:00
docs: specify valid types for settings.define
This commit is contained in:
parent
676fb5fb53
commit
97e28516fb
@ -61,7 +61,7 @@ for _, v in ipairs(valid_types) do valid_types[v] = true end
|
||||
-- - `default`: A default value, which is returned by [`settings.get`] if the
|
||||
-- setting has not been changed.
|
||||
-- - `type`: Require values to be of this type. [Setting][`set`] the value to another type
|
||||
-- will error.
|
||||
-- will error. Must be one of: `"number"`, `"string"`, `"boolean"`, or `"table"`.
|
||||
-- @since 1.87.0
|
||||
function define(name, options)
|
||||
expect(1, name, "string")
|
||||
|
Loading…
x
Reference in New Issue
Block a user