(
/** @type {import("../").Compiler | import("../").MultiCompiler} */ compiler
)
| 86 | logsStr.split(/\r/).filter((/** @type {string} */ v) => v !== class="st">" "); |
| 87 | |
| 88 | const runCompilerAsync = ( |
| 89 | /** @type {import(class="st">"../").Compiler | import(class="st">"../").MultiCompiler} */ compiler |
| 90 | ) => |
| 91 | new Promise((resolve, reject) => { |
| 92 | compiler.run((/** @type {Error | null} */ err) => { |
| 93 | if (err) { |
| 94 | reject(err); |
| 95 | } else { |
| 96 | resolve(undefined); |
| 97 | } |
| 98 | }); |
| 99 | }); |
| 100 | |
| 101 | /** @typedef {{ toString(): string, toStringRaw(): string, restore(): void, data: string[], reset(): void }} CapturedStdio */ |
| 102 |
no test coverage detected