MCPcopy Index your code
hub / github.com/microsoft/TypeChat / createModuleTextFromJson

Function createModuleTextFromJson

typescript/src/ts/validate.ts:108–110  ·  view source on GitHub ↗
(jsonObject: object)

Source from the content-addressed store, hash-verified

106 }
107
108 function createModuleTextFromJson(jsonObject: object) {
109 return success(`import { ${typeName} } from './schema';\nconst json: ${typeName} = ${JSON.stringify(jsonObject, undefined, 2)};\n`);
110 }
111
112 function createProgramFromModuleText(moduleText: string, oldProgram?: ts.Program) {
113 const fileMap = new Map([

Callers

nothing calls this directly

Calls 1

successFunction · 0.90

Tested by

no test coverage detected