Utils
namespace
Utils
sourceexport namespace Utils export namespace Utilsfunction
createCommandInstance
sourceexport function createCommandInstance<T extends CommandType>(data: Omit<Partial<AnyCommandData<T>>, "type">&{ type: T; }): AnyCommand<T> export function createCommandInstance<T extends CommandType>(data: Omit<Partial<AnyCommandData<T>>, "type">&{ type: T; }): AnyCommand<T>| Param | Type | Required |
|---|---|---|
| | Yes |
Returns:
AnyCommand<T> AnyCommand<T>function
createCommandBuilderInstance
sourceexport function createCommandBuilderInstance<T extends CommandType>(type: T): AnyCommandBuilder<T> export function createCommandBuilderInstance<T extends CommandType>(type: T): AnyCommandBuilder<T>| Param | Type | Required |
|---|---|---|
| | Yes |
Returns:
AnyCommandBuilder<T> AnyCommandBuilder<T>function
executeCommandPreconditions
sourceexport function executeCommandPreconditions<T extends CommandType>(data: AnyCommandExecuteData<T>): Promise<AnyCommandExecuteData<T>|null> export function executeCommandPreconditions<T extends CommandType>(data: AnyCommandExecuteData<T>): Promise<AnyCommandExecuteData<T>|null>| Param | Type | Required |
|---|---|---|
| | Yes |
Returns:
Promise<AnyCommandExecuteData<T>|null> Promise<AnyCommandExecuteData<T>|null>