Files
react/components/utils/types.d.ts
2020-04-08 19:18:26 +08:00

5 lines
113 B
TypeScript

export type DeepPartial<T> = {
[P in keyof T]?: T[P] extends Record<string, any> ? DeepPartial<T[P]> : T[P]
}