CommandPreconditionValidator

class

CommandPreconditionValidator

source
export class CommandPreconditionValidator extends Validator
export class CommandPreconditionValidator extends Validator
static source

.isValidId(...)

isValidId(id: unknown): asserts id is string
isValidId(id: unknown): asserts id is string
ParamTypeRequired
id
id
unknown
unknown
Yes

Returns:

asserts id is string
asserts id is string

static source

.isValidScope(...)

isValidScope(scope: unknown): asserts scope is CommandType[]
isValidScope(scope: unknown): asserts scope is CommandType[]
ParamTypeRequired
scope
scope
unknown
unknown
Yes

Returns:

asserts scope is CommandType[]
asserts scope is CommandType[]

static source

.isValidExecute(...)

isValidExecute(execute: unknown): asserts execute is Function
isValidExecute(execute: unknown): asserts execute is Function
ParamTypeRequired
execute
execute
unknown
unknown
Yes

Returns:

asserts execute is Function
asserts execute is Function

static source

.isValid(...)

isValid(value: unknown): asserts value is CommandPrecondition.Data
isValid(value: unknown): asserts value is CommandPrecondition.Data
ParamTypeRequired
value
value
unknown
unknown
Yes

Returns:

asserts value is CommandPrecondition.Data
asserts value is CommandPrecondition.Data

static source

.id

_sapphire_shapeshift0.StringValidator<string>
_sapphire_shapeshift0.StringValidator<string>
static source

.scope

_sapphire_shapeshift0.UnionValidator<CommandType[]|undefined>
_sapphire_shapeshift0.UnionValidator<CommandType[]|undefined>
_sapphire_shapeshift0.InstanceValidator<Function>
_sapphire_shapeshift0.InstanceValidator<Function>
static source

.object

_sapphire_shapeshift0.ObjectValidator<{ id: string; scope: CommandType[]|undefined; execute: Function; }, _sapphire_shapeshift0.UndefinedToOptional<{ id: string; scope: CommandType[]|undefined; execute: Function; }>>
_sapphire_shapeshift0.ObjectValidator<{ id: string; scope: CommandType[]|undefined; execute: Function; }, _sapphire_shapeshift0.UndefinedToOptional<{ id: string; scope: CommandType[]|undefined; execute: Function; }>>
_sapphire_shapeshift0.UnionValidator<_sapphire_shapeshift0.UndefinedToOptional<{ id: string; scope: CommandType[]|undefined; execute: Function; }>|_sapphire_shapeshift0.UndefinedToOptional<{ toJSON: Function; }>>
_sapphire_shapeshift0.UnionValidator<_sapphire_shapeshift0.UndefinedToOptional<{ id: string; scope: CommandType[]|undefined; execute: Function; }>|_sapphire_shapeshift0.UndefinedToOptional<{ toJSON: Function; }>>