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

Function runCommand

valdi/vscode_debugger/src/common/contributionUtils.ts:158–163  ·  view source on GitHub ↗
(
  ns: typeof commands,
  key: K,
  ...args: Parameters<ICommandTypes[K]>
)

Source from the content-addressed store, hash-verified

156 * Typed guard for running a command.
157 */
158export const runCommand = async <K extends keyof ICommandTypes>(
159 ns: typeof commands,
160 key: K,
161 ...args: Parameters<ICommandTypes[K]>
162): Promise<ReturnType<ICommandTypes[K]>> =>
163 (await ns.executeCommand(key, ...args)) as ReturnType<ICommandTypes[K]>;
164
165/**
166 * Typed guard for creating a {@link Command} interface.

Callers 3

profiling.test.tsFile · 0.90
debugNpmScriptFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected