MCPcopy Create free account
hub / github.com/Snapchat/Valdi / asCommand

Function asCommand

valdi/vscode_debugger/src/common/contributionUtils.ts:168–173  ·  view source on GitHub ↗
(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 */
168export 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.

Callers 1

provideCodeLensesMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected