Skip to content

Commit

Permalink
add types
Browse files Browse the repository at this point in the history
  • Loading branch information
cenfun committed Dec 2, 2023
1 parent 2859d44 commit 5b62c52
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions lib/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@

/**
* monocart coverage reports
*/

export type IstanbulReportConfig = {
name: string,
options: any
Expand Down Expand Up @@ -41,4 +36,12 @@ export type CoverageReportOptions = {
inline?: boolean,

logging?: string
};
};

export class CoverageReport {
constructor(options?: CoverageReportOptions);
add: (coverageData: any[] | any) => Promise<any>;
generate: () => Promise<any>;
}

export function createCoverageReport(options?: CoverageReportOptions): CoverageReport;

0 comments on commit 5b62c52

Please sign in to comment.