## Steps to reproduce ```ts // @filename: types.ts interface BaseDefinition { id: string; } export type Definition = BaseDefinition; // @filename: index.ts import { Definition } from "./types"; export const fn = (def: Definition) => { } ``` [Playground link](https://www.typescriptlang.org/dev/bug-workbench/?moduleResolution=99&module=199&ts=5.9.2#code/PTAEAEFsHsBMFcA2BTASsgztR8AuBLaAOwC5Qi5kjkAPXAWACgQIYEUyLYraHmxw3AMaIAhgCdRBYiVzj4yJi3AAzfCiKjIyMrgCeAB0wA6XBib4iuZOJWihyUACFRGZABFkaovmlFQAN5MoCGg+LBkGHKWAOYA3EwAvkxMtAbQ4rig+kagnt6+hP4AvM6uHl6WhcQJjEoCahpaOmFE3DSm5nWM+JDpmYF5lT5+oImgKuLQkKAARMbAOZiztWkZWULEURMloAAU3Cpk+VV+AJSgxQB8g8mMQA) ## Behavior with `typescript@5.8` Declaration for `index.d.ts` is emitted as `export declare const fn: (def: Definition) => void` ## Behavior with `tsgo` We get an error: `Exported variable 'fn' has or is using name 'BaseDefinition' from external module "project/generic/types" but cannot be named.` Possibly related to: #1741