2.0.1 ā¢ Published 2 years ago
@putout/plugin-remove-unused-types v2.0.1
@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