@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