- action(name: string, description?: IActionDescription<(ActionArgument | ActionArgument[])[], default<unknown, number, unknown, unknown>, void, IActionUsable, never>): (<K, T>(target: T, key: K) => void)
-
Returns (<K, T>(target: T, key: K) => void)
-
- <K, T>(target: T, key: K): void
-
Type Parameters
-
K extends string | number | symbol
-
T extends Record<K, ActionType>
Returns void
Registers an action.