UNPKG

comptime.ts

Version:

<div align="center"> <img src="https://raw.githubusercontent.com/feathers-studio/comptime.ts/master/docs/comptime.ts.svg" alt="Hyperactive"> </div>

10 lines (9 loc) 471 B
import * as ts from "typescript"; /** * This may look overly complex just for reporting errors, * but without enough information it may be very hard to debug comptime errors * because they are run in a constructed environment. * * We remedy that by producing well-formatted and very detailed error messages. */ export declare function formatSourceError(sourceFile: ts.SourceFile, target: ts.Node, error: unknown, evalProgram?: string, transpiled?: string): string;