// x.ts
export default 0;
export const x = 0;
export const y = 0;
// index.ts
import df, {x, y as z} from "./x";
[df, x, z];
Starting from the last line of index.ts, goto-declaration on x and z each go directly to x.ts. But for df it goes to the import first, and one must goto-declaration again to get to x.ts.
Starting from the last line of
index.ts, goto-declaration onxandzeach go directly tox.ts. But fordfit goes to the import first, and one must goto-declaration again to get tox.ts.