TS2512

error TS2512: Overload signatures must all be abstract or non-abstract.

Broken Code ❌

1
2
3
4
5
export abstract class MovingAverage {
update(prices: BigSource[]): Big | void;

abstract update(price: BigSource): Big | void;
}

Fixed Code ✔️

1
2
3
4
5
export abstract class MovingAverage {
abstract update(prices: BigSource[]): Big | void;

abstract update(price: BigSource): Big | void;
}