-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2922edf
commit d69cd71
Showing
20 changed files
with
2,402 additions
and
2,402 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,95 +1,95 @@ | ||
export type { | ||
readable, | ||
StackInfo, | ||
Stacktrace, | ||
JavaError, | ||
ReportDetails, | ||
HeadThread, | ||
AffectedLevel, | ||
DetailsItem, | ||
CrashReport, | ||
ErrorDesc, | ||
SolutionPossibility, | ||
ErrorResult, | ||
Solution, | ||
MCLAAPI, | ||
readable, | ||
StackInfo, | ||
Stacktrace, | ||
JavaError, | ||
ReportDetails, | ||
HeadThread, | ||
AffectedLevel, | ||
DetailsItem, | ||
CrashReport, | ||
ErrorDesc, | ||
SolutionPossibility, | ||
ErrorResult, | ||
Solution, | ||
MCLAAPI, | ||
} | ||
|
||
type readable = | ||
| string | ||
| Uint8Array | ||
| ReadableStream | ||
| ReadableStreamDefaultReader | ||
| string | ||
| Uint8Array | ||
| ReadableStream | ||
| ReadableStreamDefaultReader | ||
|
||
interface StackInfo { | ||
raw: string | ||
class: string | ||
method: string | ||
raw: string | ||
class: string | ||
method: string | ||
} | ||
|
||
type Stacktrace = StackInfo[] | ||
|
||
interface JavaError { | ||
class: string | ||
message: string | ||
stacktrace: Stacktrace | ||
causedBy: JavaError | ||
// extra infos | ||
lineNo: number | ||
class: string | ||
message: string | ||
stacktrace: Stacktrace | ||
causedBy: JavaError | ||
// extra infos | ||
lineNo: number | ||
} | ||
|
||
type ReportDetails = Map<string, string[]> | ||
|
||
interface HeadThread { | ||
thread: string | ||
stacktrace: Stacktrace | ||
thread: string | ||
stacktrace: Stacktrace | ||
} | ||
|
||
interface AffectedLevel { | ||
details: ReportDetails | ||
stacktrace: Stacktrace | ||
details: ReportDetails | ||
stacktrace: Stacktrace | ||
} | ||
|
||
interface DetailsItem { | ||
details: ReportDetails | ||
details: ReportDetails | ||
} | ||
|
||
interface CrashReport { | ||
description: string | ||
error: JavaError | ||
head: HeadThread | ||
affectedLevel: AffectedLevel | ||
others: Map<string, DetailsItem> | ||
description: string | ||
error: JavaError | ||
head: HeadThread | ||
affectedLevel: AffectedLevel | ||
others: Map<string, DetailsItem> | ||
} | ||
|
||
interface ErrorDesc { | ||
error: string | ||
message: string | ||
solutions: number[] | ||
error: string | ||
message: string | ||
solutions: number[] | ||
} | ||
|
||
interface SolutionPossibility { | ||
errorDesc: ErrorDesc | ||
match: number | ||
errorDesc: ErrorDesc | ||
match: number | ||
} | ||
|
||
interface ErrorResult { | ||
error: JavaError | ||
matched: SolutionPossibility[] | ||
file?: string | ||
error: JavaError | ||
matched: SolutionPossibility[] | ||
file?: string | ||
} | ||
|
||
interface Solution { | ||
tags: string[] | ||
description: string | ||
link_to: string | ||
tags: string[] | ||
description: string | ||
link_to: string | ||
} | ||
|
||
interface MCLAAPI { | ||
version: string | ||
release(): void | ||
parseCrashReport(log: readable): Promise<CrashReport> | ||
parseLogErrors(log: readable): Promise<JavaError[]> | ||
analyzeLogErrors(log: readable): Promise<ErrorResult[]> | ||
analyzeLogErrorsIter(log: readable): Promise<AsyncIterable<ErrorResult>> | ||
version: string | ||
release(): void | ||
parseCrashReport(log: readable): Promise<CrashReport> | ||
parseLogErrors(log: readable): Promise<JavaError[]> | ||
analyzeLogErrors(log: readable): Promise<ErrorResult[]> | ||
analyzeLogErrorsIter(log: readable): Promise<AsyncIterable<ErrorResult>> | ||
} |
Oops, something went wrong.