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

Function tsDocCommentText

scripts/codegen/typescript.ts:63–67  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

61}
62
63function tsDocCommentText(text: string): string {
64 const lines = sanitizeJsDocText(text).split(/\r?\n/);
65 if (lines.length === 1) return `/** ${lines[0]} */`;
66 return ["/**", ...lines.map((line) => ` * ${line}`), " */"].join("\n");
67}
68
69function pushTsJsDoc(lines: string[], indent: string, entries: string[]): void {
70 const cleaned = entries.map(sanitizeJsDocText).filter((entry) => entry.length > 0);

Callers 1

rewriteFunction · 0.85

Calls 2

sanitizeJsDocTextFunction · 0.85
joinMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…