Closed
Description
// @filename a.ts
declare function foo(): any
declare function bar(): any;
export { bar };
// @filename b.ts
import { foo, bar } from "./a";
Currently we provide the following error messages:
Module '"./a"' has no exported member 'foo'.
Module '"./a"' has no exported member 'bar'.
We could instead provide the errors:
Module '"./a"' declares 'foo' locally, but it is not exported.
Module '"./a"' declares 'bar' locally', but it is exported as 'baz'.
Also using the
'{0}' is declared here.
related span.
Later on, we could provide quick fixes to respectively
- Export
foo
from ./a. - Correct the usage of
bar
tobaz
.