rads-db 3.0.50 → 3.0.51
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/index.d.ts +5 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -65,7 +65,11 @@ type GetResponseNoInclude<E, EN extends keyof EntityMeta> = {
|
|
|
65
65
|
[K in keyof E]: K extends keyof EntityMeta[EN]['relations'] ? KeepArray<E[K], RelationData<EN, K>> : E[K];
|
|
66
66
|
};
|
|
67
67
|
type DeepPartialWithNulls<T> = {
|
|
68
|
-
[K in keyof T]?: NonNullable<T[K]> extends any[] ? DeepPartialWithNulls<NonNullable<T[K]>[number]>[] : NonNullable<T[K]> extends
|
|
68
|
+
[K in keyof T]?: NonNullable<T[K]> extends any[] ? DeepPartialWithNulls<NonNullable<T[K]>[number]>[] : NonNullable<T[K]> extends {
|
|
69
|
+
id: string;
|
|
70
|
+
} ? {
|
|
71
|
+
id: string;
|
|
72
|
+
} | null : NonNullable<T[K]> extends Record<string, any> ? DeepPartialWithNulls<T[K]> | null : T[K] | null;
|
|
69
73
|
};
|
|
70
74
|
type DeepPartial<T> = {
|
|
71
75
|
[K in keyof T]?: NonNullable<T[K]> extends any[] ? DeepPartial<NonNullable<T[K]>[number]>[] : NonNullable<T[K]> extends Record<string, any> ? DeepPartial<T[K]> : T[K];
|