export type HighlightedParts = { value: string; isHighlighted: boolean; }; export type AtLeastOne; }> = Partial & TMapped[keyof TMapped]; export type Expand = T extends infer O ? { [K in keyof O]: O[K]; } : never; export type RequiredKeys = Expand> & Omit>; export type Awaited = T extends PromiseLike ? Awaited : T; /** * Make certain keys of an object optional. */ export type PartialKeys = Omit & Partial>; /** * Make certain keys of an object writable (strip the `readonly` modifier). */ export type MutableKeys = Omit & { -readonly [P in TKeys]: TObj[P]; };