Skip to content

Commit

Permalink
Fix RecursivePartial Type
Browse files Browse the repository at this point in the history
  • Loading branch information
codeBelt committed May 26, 2022
1 parent a6e9ded commit 78b5b99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BaseModel.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export type BaseModelJson<T> = Omit<T, Exclude<keyof IBaseModel, T> | keyof Base
export type RecursivePartial<T> = {
[P in keyof T]?: T[P] extends (infer U)[]
? RecursivePartial<U>[]
: T[P] extends Record<string, unknown>
: T[P] extends Record<string, any>
? RecursivePartial<T[P]>
: T[P];
};

0 comments on commit 78b5b99

Please sign in to comment.