Update crash-reporter module

This commit is contained in:
Milan Burda
2016-03-25 21:03:52 +01:00
parent c43bf44206
commit 2ba9783713
2 changed files with 13 additions and 2 deletions

View File

@@ -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

View File

@@ -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 {