Bad function overloadingJS-0388
Warns for any two overloads that could be unified into one by using a union or an optional/rest parameter.
Bad Practice
function f(x: number): void;
function f(x: string): void;
f(): void;
f(...x: number[]): void;
Recommended
function f(x: number | string): void;
function f(x?: ...number[]): void;