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

Function shouldBePretty

src/tstl.ts:12–13  ·  view source on GitHub ↗
({ pretty }: ts.CompilerOptions = {})

Source from the content-addressed store, hash-verified

10import * as performance from "./measure-performance";
11
12const shouldBePretty = ({ pretty }: ts.CompilerOptions = {}) =>
13 pretty !== undefined ? (pretty as boolean) : ts.sys.writeOutputIsTTY?.() ?? false;
14
15let reportDiagnostic = createDiagnosticReporter(false);
16function updateReportDiagnostic(options?: ts.CompilerOptions): void {

Callers 2

updateReportDiagnosticFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected