Closed
Description
TypeScript Version: 3.9.7
Search Terms:
Code
// file a.ts
export class A {
static foo() {}
}
// file b.ts
import { A } from './a';
export class B extends A {}
// file index.ts
import { B } from './b';
export const foo = B.foo;
Expected behavior:
output declaretion files with no errors.
Actual behavior:
// in index.d.ts
export declare const foo: typeof import("./a").A.foo;
// Namespace '"<build_path>/a"' has no exported member 'A'.ts(2694)
Playground Link:
https://github.com/Frezc/classstatictypeinfer-repro
Related Issues: