plantain-00 / type-coverage

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

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

Closed plantain-00 closed 1 year ago

plantain-00 commented 1 year 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