typescript-cleanup-defs
is a simple typescript plugin that filters out Go to definition results from any given declration file
npm install typescript-cleanup-defs
or
yarn add typescript-cleanup-defs
Add it as plugin to tsconfig.json
{
"compilerOptions":{
"plugins":[{
"name":"typescript-cleanup-defs",
"enable":true,
"modules":[
"node_modules/vite/client.d.ts", // all definition results from this declration module will be filtered out
...
]
}]
}
}
Enable or disable this plugin. Defaults to true
List of modules the plugin should omit the definitions from