$ cnpm install @putout/plugin-apply-utility-types
putout plugin adds ability to apply utility types.
npm i @putout/plugin-apply-utility-types
{
"rules": {
"apply-utility-types": "on"
}
}
type SuperType1 = {
[Key in keyof Type]?: Type[Key];
}
type SuperType1 = Partial<Type>;
MIT
Copyright 2013 - present © cnpmjs.org | Home |