typescript-cleanup-definitions

1.3.1 • Public • Published

TypeScript CleanUp Definitions

What is it ?

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

Installation

npm install typescript-cleanup-definitions

or

yarn add typescript-cleanup-definitions

Usage

TS Config

Add the plugin to the tsconfig.json's compilerOptions

{
    "compilerOptions": {
        "plugins": [
            {
                "name": "typescript-cleanup-definitions",
                "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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.3.118latest

Version History

VersionDownloads (Last 7 Days)Published
1.3.118
1.3.00
1.2.00
1.1.00
1.0.50
1.0.40
1.0.30
1.0.20
1.0.11
1.0.01

Package Sidebar

Install

npm i typescript-cleanup-definitions

Weekly Downloads

15

Version

1.3.1

License

ISC

Unpacked Size

11.2 kB

Total Files

5

Last publish

Collaborators

  • vk_opensource_lab