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

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -