oksy 0.1.17 → 0.1.18
Sign up to get free protection for your applications and to get access to all the features.
- package/boot.js +20 -20
- package/library.js +1 -1
- package/package.json +1 -1
- package/types/src/library.pub.d.ts +4 -3
package/package.json
CHANGED
@@ -13,9 +13,10 @@ declare abstract class GlobalEntity {
|
|
13
13
|
[key: string]: IValidator[];
|
14
14
|
};
|
15
15
|
}
|
16
|
-
|
17
|
-
|
18
|
-
}
|
16
|
+
type RelationFields<T1 extends GlobalEntity> = {
|
17
|
+
[K in keyof T1]: T1[K] extends GlobalEntity ? K : (T1[K] extends Many<any, any> ? K : never);
|
18
|
+
}[keyof T1];
|
19
|
+
declare class Many<T1 extends GlobalEntity = any, T2 extends RelationFields<T1> = any> {
|
19
20
|
all(): T1[];
|
20
21
|
allWithDraft(): Draft<T1>[];
|
21
22
|
size(): number;
|