I have a enum and interface like this
enum MyEnum {
ALL, OTHER
}
interface Props {
sources: Omit<MyEnum, MyEnum.ALL>
}
const test: Props = { sources: MyEnum.ALL } // should complain
Why does it not omit MyEnum.All? I am using typescript 3.6.4