MCPcopy Index your code
hub / github.com/github/copilot-sdk / pushTsJsDoc

Function pushTsJsDoc

scripts/codegen/typescript.ts:69–83  ·  view source on GitHub ↗
(lines: string[], indent: string, entries: string[])

Source from the content-addressed store, hash-verified

67}
68
69function pushTsJsDoc(lines: string[], indent: string, entries: string[]): void {
70 const cleaned = entries.map(sanitizeJsDocText).filter((entry) => entry.length > 0);
71 if (cleaned.length === 0) return;
72
73 lines.push(`${indent}/**`);
74 for (const [index, entry] of cleaned.entries()) {
75 if (index > 0) {
76 lines.push(`${indent} *`);
77 }
78 for (const line of entry.split(/\r?\n/)) {
79 lines.push(`${indent} * ${line}`);
80 }
81 }
82 lines.push(`${indent} */`);
83}
84
85function rpcResultDescription(method: RpcMethod): string | undefined {
86 const resultSchema = getMethodResultSchema(method);

Callers 1

pushTsRpcMethodJsDocFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…