pangea-server 3.3.86 → 3.3.87
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.
|
@@ -59,7 +59,11 @@ type OptionalIfOptional<T> = {
|
|
|
59
59
|
type IncludeHidden<T> = {
|
|
60
60
|
[K in keyof T]-?: Exclude<T[K], undefined> extends ColHidden<infer U> ? U : T[K];
|
|
61
61
|
};
|
|
62
|
-
type IsRelation<T> = NonNullable<T> extends
|
|
62
|
+
type IsRelation<T> = NonNullable<T> extends {
|
|
63
|
+
id: ModelId;
|
|
64
|
+
} ? true : NonNullable<T> extends Array<infer U> ? NonNullable<U> extends {
|
|
65
|
+
id: ModelId;
|
|
66
|
+
} ? true : false : false;
|
|
63
67
|
type StripRelations<T> = {
|
|
64
68
|
[K in keyof T as IsRelation<T[K]> extends true ? never : K]: T[K];
|
|
65
69
|
};
|