monocart-coverage-reports 2.1.0 → 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.d.ts CHANGED
@@ -104,19 +104,16 @@ declare namespace MCR {
104
104
  total: number;
105
105
  pct: number | "";
106
106
  status: "low" | "medium" | "high" | "unknown";
107
- }
108
-
109
- export interface LinesSummary extends MetricsSummary {
110
- /** V8 only */
107
+ /** V8 lines only */
111
108
  blank?: number;
112
- /** V8 only */
109
+ /** V8 lines only */
113
110
  comment?: number;
114
111
  }
115
112
 
116
113
  export interface CoverageSummary {
117
114
  functions: MetricsSummary;
118
115
  branches: MetricsSummary;
119
- lines: LinesSummary;
116
+ lines: MetricsSummary;
120
117
  /** V8 only */
121
118
  bytes?: MetricsSummary;
122
119
  /** Istanbul only */
@@ -232,6 +229,11 @@ declare namespace MCR {
232
229
  cleanCache: () => boolean;
233
230
  }
234
231
 
232
+ export interface McrCliOptions extends CoverageReportOptions {
233
+ /** {function} onStart hook */
234
+ onStart?: (coverageReport: CoverageReport) => Promise<void>;
235
+ }
236
+
235
237
  }
236
238
 
237
239
  /** create coverage report */