@putout/plugin-apply-utility-types
v1.0.1
Published
putout plugin adds ability use apply utility types
Downloads
915
Maintainers
Readme
@putout/plugin-apply-utility-types
🐊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