Browse Source

Move crash-report object to it's own struct

Samuel Attard 8 years ago
parent
commit
c1af62a3b3
2 changed files with 6 additions and 8 deletions
  1. 2 8
      docs/api/crash-reporter.md
  2. 4 0
      docs/api/structures/crash-report.md

+ 2 - 8
docs/api/crash-reporter.md

@@ -58,20 +58,14 @@ crash reports.
 
 ### `crashReporter.getLastCrashReport()`
 
-Returns `Object`:
-
-* `date` String
-* `ID` Integer
+Returns [`CrashReport`](structures/crash-report.md):
 
 Returns the date and ID of the last crash report. If no crash reports have been
 sent or the crash reporter has not been started, `null` is returned.
 
 ### `crashReporter.getUploadedReports()`
 
-Returns `Object[]`:
-
-* `date` String
-* `ID` Integer
+Returns [`CrashReport[]`](structures/crash-report.md):
 
 Returns all uploaded crash reports. Each report contains the date and uploaded
 ID.

+ 4 - 0
docs/api/structures/crash-report.md

@@ -0,0 +1,4 @@
+# CrashReport Object
+
+* `date` String
+* `ID` Integer