TS4063
Parameter 'config' of constructor from exported class has or is using private name 'DoubleMovingAverageConfig'.
Broken Code ❌
type DoubleMovingAverageConfig = {
lastBuyPrice: string;
lastSellPrice: string;
warmUpCandles: number;
};
class DoubleMovingAverage extends Strategy {
constructor(
private setup: StrategySetup,
private config?: DoubleMovingAverageConfig
) {}
}Fixed Code ✔️
export type DoubleMovingAverageConfig = {
lastBuyPrice: string;
lastSellPrice: string;
warmUpCandles: number;
};
class DoubleMovingAverage extends Strategy {
constructor(
private setup: StrategySetup,
private config?: DoubleMovingAverageConfig
) {}
}