Skip to content

Commit

Permalink
🌈 style(format): format files
Browse files Browse the repository at this point in the history
  • Loading branch information
bingling-sama committed Mar 4, 2024
1 parent 2922edf commit d69cd71
Show file tree
Hide file tree
Showing 20 changed files with 2,402 additions and 2,402 deletions.
108 changes: 54 additions & 54 deletions docs/.vitepress/analyzers/mcla.api.ts
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>>
}
Loading

0 comments on commit d69cd71

Please sign in to comment.