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

Is it possible to use getModelForClass with generics? #403

Open
mouimet-infinisoft opened this issue May 4, 2020 · 1 comment
Open

Is it possible to use getModelForClass with generics? #403

mouimet-infinisoft opened this issue May 4, 2020 · 1 comment
Labels

Comments

@mouimet-infinisoft
Copy link

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);
    }
}
@hasezoey
Copy link
Contributor

hasezoey commented May 4, 2020

this repository is not maintained anymore, please look at the new repo

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

No branches or pull requests

2 participants