I'm curious about how to set a default value for a class property, as well as define all available values at once. For example:
class MyClass{
isActive = -1; //Setting default value
}
class MyClass{
isActive: -1 | 0 | 1; //Defining all available values
}
And I would like to achieve something like this:
class MyClass{
//isActive = -1 && isActive: -1 | 0 | 1
}