category | alias |
---|---|
Generate Object |
OmitByValueFuzzy |
From T remove a set of properties by value fuzzy matching ValueType.
import type { OmitByTypeFuzzy } from '@utype/core'
type Props = {
foo: number;
bar?: number;
faz: boolean;
}
// Expect: { foo: number; faz: boolean }
type OmitByTypeFuzzyProps1 = OmitByTypeFuzzy<Props, undefined>
// Expect: { foo: number }
type OmitByTypeFuzzyProps2 = OmitByTypeFuzzy<Props, boolean | undefined>