The implementation is a "best effort" with some educated guesses on how typescript solutions actually work.
To be discussed:
1) regex based matching of patterns for include. Is that ok or should that be done with array/string scanning for perf and security reasons?
2) return value in case no reference including the input file was found? Only the solution as 'closest' tsconfig or no tsconfig because it doesn't include it
3) ParseResult interface structure. 2 props with referenced and solution feel a bit much for one feature
fixes #2
The implementation is a "best effort" with some educated guesses on how typescript solutions actually work.
To be discussed: 1) regex based matching of patterns for include. Is that ok or should that be done with array/string scanning for perf and security reasons? 2) return value in case no reference including the input file was found? Only the solution as 'closest' tsconfig or no tsconfig because it doesn't include it 3) ParseResult interface structure. 2 props with referenced and solution feel a bit much for one feature