JSPM

@putout/plugin-remove-unused-types

2.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7019
  • Score
    100M100P100Q141840F
  • License MIT

putout plugin adds ability to find and remove unused types

Package Exports

  • @putout/plugin-remove-unused-types
  • @putout/plugin-remove-unused-types/lib/remove-unused-types.js

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

🐊Putout plugin adds ability to find and remove unused types. Moved to @putout/plugin-typescript

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