plantain-00 / type-coverage

A CLI tool to check type coverage for typescript code
MIT License
1.2k stars 43 forks source link

Support tsconfig extends array #132

Closed Logicer16 closed 6 months ago

Logicer16 commented 6 months ago

Fixes(if relevant):

Typescript v5 added support for using an array to specify multiple files to extend from. This PR updates type-coverage to support projects which use this feature.

It aims to match the behaviour of typescript in the order files are processed where, for example:

{
   "extends": ["a", "b", "c"]
}

[behaves] like extending c directly, where c extends b, and b extends a. If any fields “conflict”, the latter entry wins.

This shouldn't change functionality for when a single extends source is specified, either through a string or a single element array.

Checks