1.0.1 ā€¢ Published 2 years ago

@putout/plugin-apply-utility-types v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@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