node.js - Extends an NPM module class with no typings from TypeScript -
i wanted experiment mobx-firebase-store in typescript code. has no typings uses javascript classes.
i tried convert chatstore.js code imports mobxfirebasestore class:
import mobxfirebasestore 'mobx-firebase-store';
and later extends it:
export default class messagestore extends mobxfirebasestore {
since there no types, tried using trick make library declared any
typings install mobx-firebase-store=common~any --save
then:
import * mobxfirebasestore 'mobx-firebase-store';
but line:
export default class messagestore extends mobxfirebasestore {
has following errors:
ts2507:type 'any' not constructor function type. ts4020:extends clause of exported class 'messagestore' has or using private name 'mobxfirebasestore'.
what quickest , easiest way get past these errors , able extend class in similar way being done here babel?
Comments
Post a Comment