JSPM

@putout/plugin-remove-unused-types

1.3.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7164
  • Score
    100M100P100Q141952F
  • License MIT

putout plugin adds ability to find and remove unused types

Package Exports

  • @putout/plugin-remove-unused-types

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@putout/plugin-remove-unused-types) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@putout/plugin-remove-unused-types NPM version Dependency Status

putout plugin adds ability to find and remove unused types.

Install

npm i @putout/plugin-remove-unused-types -D

Rule

{
    "rules": {
        "remove-unused-types": "on"
    }
}

❌ Incorrect code example

type n = number;
type s = string;

const x: n = 5;

✅ Correct code Example

type n = number;

const x: n = 5;

License

MIT