Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TS2511: Cannot create an instance of an abstract class. #286

Open
nm4568 opened this issue Apr 16, 2019 · 2 comments
Open

TS2511: Cannot create an instance of an abstract class. #286

nm4568 opened this issue Apr 16, 2019 · 2 comments

Comments

@nm4568
Copy link

nm4568 commented Apr 16, 2019

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();

@dakt
Copy link

dakt commented Apr 27, 2019

I'm also confused by this...are we supposed to implement all abstract methods? Nothing in docs tho...

@govorov
Copy link

govorov commented Oct 21, 2022

Any updates here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants