React Native, TypeScript code JS(non-TS) ORM module:
Parent BaseModel
:
export default class BaseModel { static createTable() { ... } ...
My model of Animal
does NOT redefine the method, it's just defined as:export default class Animal extends BaseModel { ...
Now this code await Animal.createTable();
actually works, but VSCode TypeScript checker gives following error in code:
Property 'createTable' does not exist on type 'typeof Animal'.ts(2339)
Is this the editor/checker issue? Or should the JS/TS code be defined somehow better?