UNPKG

943 BTypeScriptView Raw
1declare function powerAssertFormatter(options?: powerAssertFormatter.Options): powerAssertFormatter.Formatter;
2
3declare namespace powerAssertFormatter {
4 export interface Options {
5 lineDiffThreshold?: number | undefined;
6 maxDepth?: number | undefined;
7 outputOffset?: number | undefined;
8 anonymous?: string | undefined;
9 circular?: string | undefined;
10 lineSeparator?: string | undefined;
11 ambiguousEastAsianCharWidth?: number | undefined;
12 widthOf?: Function | undefined;
13 stringify?: Function | undefined;
14 diff?: Function | undefined;
15 writerClass?: { new(): any } | undefined;
16 renderers?: any[] | undefined; // { string | Function }[]
17 }
18
19 export interface Formatter {
20 (powerAssertContext: any): string;
21 }
22
23 export function defaultOptions(): Options;
24}
25
26export = powerAssertFormatter;
27export as namespace powerAssertFormatter;