>;  const fooObject: DiscriminatingUnion = {   type: "foo",   foo: "",   propToOmit: "",   propToKeep: "" };  const barObject: DiscriminatingUnion = {   type: "bar",   bar: "",   propToOmit: "",   propToKeep: "" };  const testArray: OmitFromDiscUnion[] = [fooObject, barObject]; testArray.forEach((testObject) => {   switch (testObject.type) {     case "bar":       // 