@putout/plugin-apply-utility-types
putout plugin adds ability use apply utility types
Last updated 4 years ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @putout/plugin-apply-utility-types 
SYNC missed versions from official npm registry.

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

putout plugin adds ability to apply utility types.

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

Current Tags

  • 1.0.1                                ...           latest (4 years ago)

2 Versions

  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (0)
None
Dev Dependencies (8)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |