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

1.0.2 • Public • Published

@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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    120
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    120
  • 1.0.1
    235
  • 1.0.0
    2

Package Sidebar

Install

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

Weekly Downloads

71

Version

1.0.2

License

MIT

Unpacked Size

4.09 kB

Total Files

4

Last publish

Collaborators

  • coderaiser