mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
Update crash-reporter module
This commit is contained in:
@@ -527,6 +527,9 @@ crashReporter.start({
|
||||
}
|
||||
});
|
||||
|
||||
console.log(crashReporter.getLastCrashReport());
|
||||
console.log(crashReporter.getUploadedReports());
|
||||
|
||||
// nativeImage
|
||||
// https://github.com/atom/electron/blob/master/docs/api/native-image.md
|
||||
|
||||
|
||||
@@ -4,15 +4,23 @@
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare namespace Electron {
|
||||
|
||||
/**
|
||||
* The crash-reporter module enables sending your app's crash reports.
|
||||
*/
|
||||
interface CrashReporter {
|
||||
/**
|
||||
* You are required to call this method before using other crashReporter APIs.
|
||||
*/
|
||||
start(options: CrashReporterStartOptions): void;
|
||||
|
||||
/**
|
||||
* @returns The date and ID of the last crash report. When there was no crash report
|
||||
* sent or the crash reporter is not started, null will be returned.
|
||||
*/
|
||||
getLastCrashReport(): CrashReporterPayload;
|
||||
/**
|
||||
* @returns All uploaded crash reports. Each report contains the date and uploaded ID.
|
||||
*/
|
||||
getUploadedReports(): CrashReporterPayload[];
|
||||
}
|
||||
|
||||
interface CrashReporterStartOptions {
|
||||
|
||||
Reference in New Issue
Block a user