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

Function templateFunction

valdi/vscode_debugger/src/adapter/templates/index.ts:43–47  ·  view source on GitHub ↗
(
  fn: string | ((...args: Args) => void),
)

Source from the content-addressed store, hash-verified

41): (a: string, b: string, c: string) => string;
42export function templateFunction<Args extends unknown[]>(fn: string): (...args: Args) => string;
43export function templateFunction<Args extends unknown[]>(
44 fn: string | ((...args: Args) => void),
45): (...args: string[]) => string {
46 return templateFunctionStr('' + fn);
47}
48
49export function templateFunctionStr<Args extends string[]>(
50 stringified: string,

Callers 2

Calls 1

templateFunctionStrFunction · 0.85

Tested by

no test coverage detected