1.1.0 • Published 1 year ago

typescript-cleanup-definitions v1.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Typescript CleanUp Definitions

What is it ?

typescript-cleanup-defs is a simple typescript plugin that filters out Go to definition results from any given set of declaration files

Installation

npm install typescript-cleanup-defs

or

yarn add typescript-cleanup-defs

Usage

TS Config

Add the plugin to the tsconfig.json's compilerOptions

 {
   "compilerOptions":{
    "plugins":[{
        "name":"typescript-cleanup-defs",
        "enable":true,
        "modules":[
            "*.module.css",
            "*.client.d.ts"
        ]
    }]
   }
 }

VS Code Extension

Add it as a typescript server plugin to the package.json contributes section

  "contributes":{
    ...config
    "typescriptServerPlugins": [
     {
       "enableForWorkspaceTypeScriptVersions": true,
       "name": "typescript-cleanup-definitions"
     }
   ]
  }

To configure the plugin at time of activation of your extension , follow this guide

Settings

  • enable
    • Enable or disable this plugin. Defaults to true
  • modules
    • List of module extensions the plugin should omit the definitions from
1.1.0

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago