blob: f03a242348de4272e592b5219f3b592320505a59 (
plain)
1
2
3
4
5
6
7
8
|
/**
* @type DeepPartial<T> makes all properties of type T optional, but keep
* array types intact
*/
export type DeepPartial<T> = {
[K in keyof T]?: T[K] extends Array<infer U> ? Array<U> : DeepPartial<T[K]>;
};
|