Skip to content
This repository was archived by the owner on Jun 29, 2021. It is now read-only.
This repository was archived by the owner on Jun 29, 2021. It is now read-only.

Is it possible to use getModelForClass with generics? #403

Description

@mouimet-infinisoft

Hi
Is there a way to get a the model with a generic type like following?

export class GenericClass<T> {
    private readonly m: ModelType<T>;

    constructor() {        
        this.m = getModelForClass(T);
    }
}

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions