putout plugin adds ability to convert generic to shorthand
npm install @putout/plugin-convert-generic-to-shorthand[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-convert-generic-to-shorthand.svg?style=flat&longCache=true
[NPMURL]: https://npmjs.org/package/@putout/plugin-convert-generic-to-shorthand "npm"
šPutout plugin adds ability to convert generic to shorthand (https://stackoverflow.com/a/36843084/4536327).
Moved to @putout/plugin-typescript.
```
npm i @putout/plugin-convert-generic-to-shorthand -D
Rule convert-generic-to-shorthand is enabled by default for ts and tsx files.
`json`
{
"rules": {
"convert-generic-to-shorthand": "on"
}
}
`ts`
interface A {
x: Array
y: Array
}
`ts``
interface A {
x: X[];
y: Y[];
}
MIT