router.js
router.js copied to clipboard
TS2511: Cannot create an instance of an abstract class.
Perhaps I am misunderstanding the very first step of the README, that shows the following example of 'newing' up the Router class but the Typescript definition of Router is an abstract class.
import Router from 'router_js'
var router = new Router();
I'm also confused by this...are we supposed to implement all abstract methods? Nothing in docs tho...
Any updates here?