UNPKG

@visulima/error

Version:

Error with more than just a message, stacktrace parsing.

26 lines (24 loc) 655 B
type CodeFrameLocation = { column?: number; line: number; }; type CodeFrameNodeLocation = { end?: CodeFrameLocation; start: CodeFrameLocation; }; type ColorizeMethod = (value: string) => string; type CodeFrameOptions = { color?: { gutter?: ColorizeMethod; marker?: ColorizeMethod; message?: ColorizeMethod; }; linesAbove?: number; linesBelow?: number; message?: string; prefix?: string; showGutter?: boolean; showLineNumbers?: boolean; tabWidth?: number | false; }; export type { CodeFrameLocation as C, CodeFrameNodeLocation as a, CodeFrameOptions as b, ColorizeMethod as c };