From 786a363aa0ae6204d0517c728c24d36beaecf113 Mon Sep 17 00:00:00 2001 From: cenfun Date: Wed, 3 Jul 2024 20:00:16 +0800 Subject: [PATCH] update type --- lib/index.d.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/index.d.ts b/lib/index.d.ts index 0c6e005e..87b6d881 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -205,10 +205,14 @@ declare namespace MCR { branches?: CoverageRange[]; functions?: CoverageRange[]; ignores?: IgnoredRange[]; - /** common json format */ lines: { + /** number: hits (0 means uncovered), string: partial covered */ [key: string]: number | string; }; + extras: { + /** b: blank, c: comment, i: ignored */ + [key: string]: "b" | "c" | "i"; + } } } @@ -431,6 +435,7 @@ declare namespace MCR { functions: string; lines: string; uncoveredLines: string; + extras: string; } } }