@putout/plugin-remove-useless-mapped-types

1.0.1 • Public • Published

@putout/plugin-remove-useless-mapped-types NPM version

🐊Putout plugin adds ability to remove useless mapped types. Moved to @putout/plugin-typescript.

Install

npm i @putout/plugin-remove-useless-mapped-types

Rule

{
    "rules": {
        "remove-useless-mapped-types": "on"
    }
}

Incorrect code example

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

Correct code Example

type SuperType = Type;

License

MIT

Package Sidebar

Install

npm i @putout/plugin-remove-useless-mapped-types

Weekly Downloads

263

Version

1.0.1

License

MIT

Unpacked Size

3.92 kB

Total Files

4

Last publish

Collaborators

  • coderaiser