Considering this:
import { OverrideProperties } from 'type-fest';
type Original = {
foo: string;
bar: string;
};
type Modified = {
foo: string | undefined;
bar: string;
};
const test: OverrideProperties<Original, Modified> = { bar: '' };
foo is typed as foo?: string instead of foo: string | undefined

This is particularly problematic when using exactOptionalPropertyTypes flag
Considering this:
foo is typed as
foo?: stringinstead offoo: string | undefinedThis is particularly problematic when using
exactOptionalPropertyTypesflag