Fix type names for Commands

This commit is contained in:
Cooldude2606
2025-08-06 16:46:57 +01:00
parent 1d95d899ea
commit c5b9138e4e
3 changed files with 4 additions and 4 deletions

View File

@@ -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 =

View File

@@ -76,11 +76,11 @@ local Commands = {
},
}
--- @class Commands._status: table<string, Commands.Status>
--- @class Commands.status: table<string, Commands.Status>
--- Contains the different status values a command can return
Commands.status = {}
--- @class Commands._types: table<string, Commands.InputParser | Commands.InputParserFactory>
--- @class Commands.types: table<string, Commands.InputParser | Commands.InputParserFactory>
--- Stores all input parsers and validators for different data types
Commands.types = {}

View File

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