@putout/plugin-remove-useless-mapping-modifiers
🐊Putout plugin adds ability to remove useless mapping modifiers
Last updated 5 years ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @putout/plugin-remove-useless-mapping-modifiers 
SYNC missed versions from official npm registry.

@putout/plugin-remove-useless-mapping-modifiers NPM version

🐊Putout plugin adds ability to remove useless mapping modifiers. Moved to @putout/plugin-typescript

Install

npm i @putout/plugin-remove-useless-mapping-modifiers

Rule

{
    "rules": {
        "remove-useless-mapping-modifiers": "on"
    }
}

❌ Incorrect code example

type SuperType = {
    [Key in keyof Type]+?: Type[Key];
};

✅ Correct code Example

type SuperType = {
    [Key in keyof Type]?: Type[Key];
};

License

MIT

Current Tags

  • 1.0.2                                ...           latest (5 years ago)

3 Versions

  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Total 2
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (6)
Dependents (1)

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