diff --git a/src/types/mod.ts b/src/types/mod.ts index cc4e631..74938b1 100644 --- a/src/types/mod.ts +++ b/src/types/mod.ts @@ -74,7 +74,7 @@ export const generateSchemTypes = async ( `; str = str + ` -type DeepPartial = { +export type DeepPartial = { [P in keyof T]?: T[P] extends object ? DeepPartial : T[P]; };