The setup includes an enum and interface as shown below:
enum MyEnum {
ALL, OTHER
}
interface Props {
sources: Omit<MyEnum, MyEnum.ALL>
}
const test: Props = { sources: MyEnum.ALL } // triggering a complaint intentionally
I am perplexed by the fact that MyEnum.All
is not being omitted. Could this be a limitation of typescript 3.6.4?