forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
power-assert-formatter.d.ts
29 lines (25 loc) · 945 Bytes
/
power-assert-formatter.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Type definitions for power-assert-formatter
// Project: https://github.com/twada/power-assert-formatter
// Definitions by: vvakame <https://github.com/vvakame>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare function powerAssertFormatter(options?:powerAssertFormatter.Options):powerAssertFormatter.Formatter;
declare module powerAssertFormatter {
export interface Options {
lineDiffThreshold?: number;
maxDepth?: number;
outputOffset?: number;
anonymous?: string;
circular?: string;
lineSeparator?: string;
ambiguousEastAsianCharWidth?: number;
widthOf?: Function;
stringify?: Function;
diff?: Function;
writerClass?: {new (): any;};
renderers?: any[]; // { string | Function }[]
}
export interface Formatter {
(powerAssertContext:any): string;
}
export function defaultOptions():Options;
}