WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Generic Type not working #67

@minawalphonce

Description

@minawalphonce

I m trying to register a generic type

Container.bind(Repository<Entity>)

repository is an abstract class and holds multiple implementations for each entity.
I got an error

Value of type 'typeof Repository' is not callable. Did you mean to include 'new'?

I tried factory but still cant do it
or there a way to do that ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions