1
0
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:
Drew Edwards 2025-03-13 01:40:08 +00:00 committed by GitHub
parent 676fb5fb53
commit 97e28516fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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")