@putout/plugin-apply-utility-types

1.0.1 • Public • Published

@putout/plugin-apply-utility-types NPM version

🐊Putout plugin adds ability to apply utility types. Moved to @putout/plugin-typescript.

Install

npm i @putout/plugin-apply-utility-types

Rule

{
    "rules": {
        "apply-utility-types": "on"
    }
}

Incorrect code example

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

Correct code Example

type SuperType1 = Partial<Type>;

License

MIT

Package Sidebar

Install

npm i @putout/plugin-apply-utility-types

Weekly Downloads

91

Version

1.0.1

License

MIT

Unpacked Size

3.67 kB

Total Files

4

Last publish

Collaborators

  • coderaiser