Skip to content

Navigate to source files when path defined in js doc comment

Notifications You must be signed in to change notification settings

KitchenMate/ts-type-file-nav

Repository files navigation

typescript-file-navigation README

Navigate to source files vs. to the definition file with CMD+Click

How to use

  1. 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 };
  1. Now when you CMD + Click it will navigate to the source file / line number

About

Navigate to source files when path defined in js doc comment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published