Navigate to source files vs. to the definition file with CMD+Click
- In your type definition add a comment like so above the attribute / type that you want to redirect.
// File://../original/file.ts:<LINE_NUMBER>
ex.
interface db {
// File://../original/db.ts:5
user?: Partial<Model>;
[key: string]: any;
}
interface Model {
[key: string]: any;
}
export { db, Model };
- Now when you CMD + Click it will navigate to the source file / line number