MCPcopy Index your code
hub / github.com/TypeScriptToLua/TypeScriptToLua / transpileString

Function transpileString

src/transpilation/index.ts:112–118  ·  view source on GitHub ↗
(main: string, options: CompilerOptions = {})

Source from the content-addressed store, hash-verified

110}
111
112export function transpileString(main: string, options: CompilerOptions = {}): TranspileStringResult {
113 const { diagnostics, transpiledFiles } = transpileVirtualProject({ "main.ts": main }, options);
114 return {
115 diagnostics,
116 file: transpiledFiles.find(({ sourceFiles }) => sourceFiles.some(f => f.fileName === "main.ts")),
117 };
118}

Callers 1

sourcemaps.spec.tsFile · 0.90

Calls 1

transpileVirtualProjectFunction · 0.85

Tested by

no test coverage detected