TS4020
error TS4020: ‘extends’ clause of exported class ‘StrategyPOJO
‘ has or is using private name ‘Model
‘.
Broken Code ❌
1 2 3 4 5 6 7 8 9 10 11
| 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 ✔️
1 2 3 4 5 6 7 8 9 10 11
| 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};
|