CommandPreconditionValidator
class
CommandPreconditionValidator
sourceexport class CommandPreconditionValidator extends Validator export class CommandPreconditionValidator extends ValidatorisValidId(id: unknown): asserts id is string isValidId(id: unknown): asserts id is string| Param | Type | Required |
|---|---|---|
| | 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[]| Param | Type | Required |
|---|---|---|
| | 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| Param | Type | Required |
|---|---|---|
| | Yes |
Returns:
asserts execute is Function asserts execute is FunctionisValid(value: unknown): asserts value is CommandPrecondition.Data isValid(value: unknown): asserts value is CommandPrecondition.Data| Param | Type | Required |
|---|---|---|
| | Yes |
Returns:
asserts value is CommandPrecondition.Data asserts value is CommandPrecondition.Data_sapphire_shapeshift0.StringValidator<string> _sapphire_shapeshift0.StringValidator<string>_sapphire_shapeshift0.UnionValidator<CommandType[]|undefined> _sapphire_shapeshift0.UnionValidator<CommandType[]|undefined>_sapphire_shapeshift0.InstanceValidator<Function> _sapphire_shapeshift0.InstanceValidator<Function>_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; }>> static source
.resolvable
_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; }>>