$ npm install @putout/plugin-remove-duplicates-from-union
putout plugin adds ability to find and remove duplicates from union (for typescript). Moved to @putout/plugin-typescript.
npm i @putout/plugin-remove-duplicates-from-union -D
{
"rules": {
"remove-duplicates-from-union": "on"
}
}
type x = boolean[]
| A
| string
| A
| string[]
| boolean[];
type x = boolean[]
| A
| string
| string[];
MIT
© 2010 - cnpmjs.org x YWFE | Home | YWFE