plantain-00 / type-coverage

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

--report-semantic-error reports wrong error for code with interface in namespace #129

Closed plantain-00 closed 10 months ago

plantain-00 commented 10 months ago

Code

namespace A {
  export interface C {}
}

interface B extends A.C {
}

Cannot extend an interface 'A.C'. Did you mean 'implements'?

The typescript API program.getSemanticDiagnostics(sourceFile) reports that. https://github.com/microsoft/TypeScript/issues/55729