(main: string, options: CompilerOptions = {})
| 110 | } |
| 111 | |
| 112 | export 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 | } |
no test coverage detected