@aklinker1/zero-factory 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/utils.d.ts +1 -1
- package/package.json +1 -1
package/dist/utils.d.ts
CHANGED
|
@@ -9,6 +9,6 @@ export type DeepPartial<T> = T extends Array<any> ? T : T extends Record<string,
|
|
|
9
9
|
*/
|
|
10
10
|
export declare function deepMerge<T>(base: T, overrides: DeepPartial<T>): T;
|
|
11
11
|
export type FactoryDefaults<T extends Record<string, any>> = {
|
|
12
|
-
[Key in keyof T]: T[Key] extends Array<any> ? T[Key] | (() => T[Key]) : T[Key] extends Record<string, any> ? FactoryDefaults<T[Key]> : T[Key] extends Function ? never : T[Key] | (() => T[Key]);
|
|
12
|
+
[Key in keyof T]: T[Key] extends Array<any> | Date ? T[Key] | (() => T[Key]) : T[Key] extends Record<string, any> ? FactoryDefaults<T[Key]> : T[Key] extends Function ? never : T[Key] | (() => T[Key]);
|
|
13
13
|
};
|
|
14
14
|
export declare function resolveDefaults<T extends Record<string, any>>(val: FactoryDefaults<T>): T;
|