$ cnpm install @putout/plugin-remove-useless-mapping-modifiers
putout plugin adds ability to remove useless mapping modifiers.
npm i @putout/plugin-remove-useless-mapping-identifiers
{
"rules": {
"remove-useless-mapping-identifiers": "on"
}
}
type SuperType = {
[Key in keyof Type]+?: Type[Key];
}
type SuperType = {
[Key in keyof Type]?: Type[Key];
}
MIT
Copyright 2013 - present © cnpmjs.org | Home |