TS4020
'extends' clause of exported class 'StrategyPOJO' has or is using private name 'Model'.
Broken Code ❌
const { Model } = require('objection');
class StrategyPOJO extends Model {
static tableName = 'strategies';
config: string | undefined;
exchange: string | undefined;
identifier: string | undefined;
symbol: string | undefined;
}
export { StrategyPOJO };Fixed Code ✔️
import { Model } from 'objection';
class StrategyPOJO extends Model {
static tableName = 'strategies';
config: string | undefined;
exchange: string | undefined;
identifier: string | undefined;
symbol: string | undefined;
}
export { StrategyPOJO };