putout plugin adds ability to find and remove useless
npm install @putout/plugin-remove-useless-types[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-remove-useless-types.svg?style=flat&longCache=true
[NPMURL]: https://npmjs.org/package/@putout/plugin-remove-useless-types "npm"
šPutout plugin adds ability to find and remove useless types.
Moved to @putout/plugin-typescript.
```
npm i @putout/plugin-remove-useless-types -D
`json`
{
"rules": {
"remove-useless-types": "on"
}
}
`ts
type oldType = {
a: number,
b: string,
};
type newType = oldType;
const x: newType = 5;
`
`ts
type oldType = {
a: number,
b: string,
};
const x: oldType = 5;
``
MIT