$ npm install @putout/plugin-remove-useless-mapping-modifiers
🐊Putout plugin adds ability to remove useless mapping modifiers.
Moved to @putout/plugin-typescript
npm i @putout/plugin-remove-useless-mapping-modifiers
{
"rules": {
"remove-useless-mapping-modifiers": "on"
}
}
type SuperType = {
[Key in keyof Type]+?: Type[Key];
};
type SuperType = {
[Key in keyof Type]?: Type[Key];
};
MIT
© 2010 - cnpmjs.org x YWFE | Home | YWFE