cenfun / monocart-coverage-reports

A code coverage tool to generate native V8 reports or Istanbul reports.
MIT License
31 stars 5 forks source link

fix: fix typings of the `reports` option #40

Closed mrazauskas closed 3 months ago

mrazauskas commented 3 months ago

Documentation of the reports option mentions that it could be specified like this: ['v8', ['console-details', { skipPercent: 80 }]].

Currently that raises a TypeScript type error:

Screenshot 2024-06-13 at 16 16 04

This PR is fixing the problem. I checked this manually.

By the way, I could open a separate PR to add type tests. That is just the right job for TSTyche, a type testing tool which I created. Let me know if that sounds interesting.

cenfun commented 3 months ago

thanks for the fixing.