Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
cenfun committed Jun 20, 2024
2 parents ec1c4db + 455c0a2 commit f427424
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ declare namespace MCR {
path: string;
type: "v8" | "istanbul";
data: any;
} | undefined;
};


export interface MetricsSummary {
Expand Down Expand Up @@ -204,7 +204,7 @@ declare namespace MCR {
watermarks: Watermarks;
summary: CoverageSummary;
files: CoverageFile[];
} | undefined;
};

export type LoggingType = "off" | "error" | "info" | "debug";
export interface CoverageReportOptions {
Expand Down Expand Up @@ -329,7 +329,7 @@ declare namespace MCR {
onEntry?: (entry: V8CoverageEntry) => Promise<void>;

/** {function} onEnd hook */
onEnd?: (coverageResults: CoverageResults) => Promise<void>;
onEnd?: (coverageResults: CoverageResults | undefined) => Promise<void>;

[key: string]: any;
}
Expand Down Expand Up @@ -357,7 +357,7 @@ declare namespace MCR {
/** add coverage data
*
* @param coverageData {array} V8 format, {object} Istanbul format */
add: (coverageData: any[] | any) => Promise<AddedResults>;
add: (coverageData: any[] | any) => Promise<AddedResults | undefined>;

/**
* add V8 coverage from a dir
Expand All @@ -366,7 +366,7 @@ declare namespace MCR {
addFromDir: (dir: string) => Promise<void>;

/** generate report */
generate: () => Promise<CoverageResults>;
generate: () => Promise<CoverageResults | undefined>;

/** check if cache exists */
hasCache: () => boolean;
Expand Down

0 comments on commit f427424

Please sign in to comment.