diff --git a/packages/react/src/types/index.ts b/packages/react/src/types/index.ts index 0404056..eaec8bf 100644 --- a/packages/react/src/types/index.ts +++ b/packages/react/src/types/index.ts @@ -5,3 +5,7 @@ export type PartialNested = { export type PartialExtendableNested = { [K in keyof T]?: T[K] extends object ? PartialExtendableNested : T[K]; } & Record; + +// From https://github.com/Microsoft/TypeScript/issues/25760#issuecomment-405931434. +export type WithOptional = Omit & + Partial>;