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 
🐊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