Function
asCommand
(command: {
title: string;
command: K;
tooltip?: string;
arguments: Parameters<ICommandTypes[K]>;
})
Source from the content-addressed store, hash-verified
| 166 | * Typed guard for creating a {@link Command} interface. |
| 167 | */ |
| 168 | export const asCommand = <K extends keyof ICommandTypes>(command: { |
| 169 | title: string; |
| 170 | command: K; |
| 171 | tooltip?: string; |
| 172 | arguments: Parameters<ICommandTypes[K]>; |
| 173 | }): Command => command; |
| 174 | |
| 175 | /** |
| 176 | * Typed guard for reading a contributed config. |
Tested by
no test coverage detected