Skip to content

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

Open
@nm4568

Description

@nm4568

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions