UNPKG

1.15 kBTypeScriptView Raw
1import { PortablePath } from '@boost/common';
2export default class CrashReporter {
3 contents: string;
4 /**
5 * Add a label with a value, or multiple values, to the last added section.
6 */
7 add(label: string, ...messages: (string | number | PortablePath)[]): this;
8 /**
9 * Start a new section with a title.
10 */
11 addSection(title: string): this;
12 /**
13 * Report Node.js related binary versions and paths.
14 */
15 reportBinaries(): this;
16 /**
17 * Report all environment variables.
18 */
19 reportEnvVars(): this;
20 /**
21 * Report common programming language versions and paths
22 */
23 reportLanguages(): this;
24 /**
25 * Report information about the current `process`.
26 */
27 reportProcess(): this;
28 /**
29 * Report the stack trace for a defined `Error`.
30 */
31 reportStackTrace(error: Error): this;
32 /**
33 * Report information about the platform and operating system.
34 */
35 reportSystem(): this;
36 /**
37 * Write the reported content to the defined file path.
38 */
39 write(filePath: PortablePath): this;
40}
41//# sourceMappingURL=CrashReporter.d.ts.map
\No newline at end of file