I have a question is that how I can set the class property's default value and all available values in once. For example:
class MyClass{
isActive = -1; //Set default value
}
class MyClass{
isActive: -1 | 0 | 1; //Set all available value
}
And I want to do sth like this:
class MyClass{
//isActive = -1 && isActive: -1 | 0 | 1
}