( ns: typeof commands, key: K, fn: (...args: Parameters<ICommandTypes[K]>) => Thenable<ReturnType<ICommandTypes[K]>>, )
| 147 | * Typed guard for registering a command. |
| 148 | */ |
| 149 | export const registerCommand = <K extends keyof ICommandTypes>( |
| 150 | ns: typeof commands, |
| 151 | key: K, |
| 152 | fn: (...args: Parameters<ICommandTypes[K]>) => Thenable<ReturnType<ICommandTypes[K]>>, |
| 153 | ) => ns.registerCommand(key, fn); |
| 154 | |
| 155 | /** |
| 156 | * Typed guard for running a command. |
no outgoing calls
no test coverage detected