@putout/plugin-convert-generic-to-shorthand
putout plugin adds ability to convert generic to shorthand
Last updated 5 years ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @putout/plugin-convert-generic-to-shorthand 
SYNC missed versions from official npm registry.

@putout/plugin-convert-generic-to-shorthand NPM version

🐊Putout plugin adds ability to convert generic to shorthand (https://stackoverflow.com/a/36843084/4536327). Moved to @putout/plugin-typescript.

Install

npm i @putout/plugin-convert-generic-to-shorthand -D

Rule

Rule convert-generic-to-shorthand is enabled by default for ts and tsx files.

{
    "rules": {
        "convert-generic-to-shorthand": "on"
    }
}

❌ Incorrect code example

interface A {
    x: Array<X>;
    y: Array<Y>;
}

✅ Correct code Example

interface A {
    x: X[];
    y: Y[];
}

License

MIT

Current Tags

  • 2.0.1                                ...           latest (5 years ago)

5 Versions

  • 2.0.1                                ...           5 years ago
  • 2.0.0                                ...           5 years ago
  • 1.2.0                                ...           5 years ago
  • 1.1.0                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Total 6
Today 0
This Week 0
This Month 6
Last Day 0
Last Week 1
Last Month 0
Dependencies (0)
None
Dev Dependencies (6)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE