I create a type WithoutType
where I Exclude an enum member:
export enum MyEnum {
One = "one",
Two = "two",
Three = "three",
Zero = "zero",
}
export type WithoutType = Exclude<MyEnum, MyEnum.Zero>;
Now I need to check if a certain value exists/matches one of the union values of the type WithoutType
?
How do I do that?