How to add an enum in class in Typescript

Viewed 14813

I define a model class and I would like to add an enum label like:

export class User {
    userID: number;
    nom: string;
    prenom: string;
    dateCretation: Date;
    statut: enum {
        Value1,
        Value2
    };
}

I got a mark error in enum:

[ts] Type expected.

How can I resolve it ?

2 Answers
Related