mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 03:25:23 +09:00
Fix type names for Commands
This commit is contained in:
@@ -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 =
|
||||
|
||||
@@ -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 = {}
|
||||
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user