1.0.1 ā¢ Published 2 years ago
@putout/plugin-apply-utility-types v1.0.1
@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