diff --git a/exp_commands/module/commands/types.lua b/exp_commands/module/commands/types.lua index 451ef0a0..11511b4f 100644 --- a/exp_commands/module/commands/types.lua +++ b/exp_commands/module/commands/types.lua @@ -25,7 +25,7 @@ local Commands = require("modules/exp_commands") local add, parse = Commands.add_data_type, Commands.parse_input local valid, invalid = Commands.status.success, Commands.status.invalid_input -local types = {} --- @class Commands._types +local types = {} --- @class Commands.types --- A boolean value where true is one of: yes, y, true, 1 types.boolean = diff --git a/exp_commands/module/module_exports.lua b/exp_commands/module/module_exports.lua index 4f150c98..cbc43a80 100644 --- a/exp_commands/module/module_exports.lua +++ b/exp_commands/module/module_exports.lua @@ -76,11 +76,11 @@ local Commands = { }, } ---- @class Commands._status: table +--- @class Commands.status: table --- Contains the different status values a command can return Commands.status = {} ---- @class Commands._types: table +--- @class Commands.types: table --- Stores all input parsers and validators for different data types Commands.types = {} diff --git a/exp_scenario/module/commands/_types.lua b/exp_scenario/module/commands/_types.lua index 94f3e950..2b042835 100644 --- a/exp_scenario/module/commands/_types.lua +++ b/exp_scenario/module/commands/_types.lua @@ -18,7 +18,7 @@ local valid, invalid = Commands.status.success, Commands.status.invalid_input local Roles = require("modules.exp_legacy.expcore.roles") local highest_role = Roles.get_player_highest_role -local types = {} --- @class Commands._types +local types = {} --- @class Commands.types --- A role defined by exp roles types.role = add("role", Commands.types.key_of(Roles.config.roles))