milkio 1.0.0-alpha.6 → 1.0.0-alpha.8
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/package.json +1 -1
- package/types/index.ts +7 -13
package/package.json
CHANGED
package/types/index.ts
CHANGED
|
@@ -10,19 +10,13 @@ export type Mixin<T, U> = U & Omit<T, keyof U>;
|
|
|
10
10
|
|
|
11
11
|
export type GeneratorGeneric<T> = T extends AsyncGenerator<infer I> ? I : never;
|
|
12
12
|
|
|
13
|
-
export type DBCreate<T,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
>;
|
|
19
|
-
|
|
20
|
-
export type DBUpdate<T, K extends keyof T | never = never> = Omit<
|
|
21
|
-
Partial<{
|
|
22
|
-
[K in keyof T]: T[K] extends null ? undefined : T[K];
|
|
23
|
-
}>,
|
|
24
|
-
K
|
|
25
|
-
>;
|
|
13
|
+
export type DBCreate<T, KO extends keyof T | never = never, TO extends Omit<T, KO> = Omit<T, KO>> = {
|
|
14
|
+
[K in keyof TO]?: TO[K] extends null ? undefined : Exclude<TO[K], null>;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export type DBUpdate<T, KO extends keyof T | never = never, TO extends Partial<Omit<T, KO>> = Partial<Omit<T, KO>>> = {
|
|
18
|
+
[K in keyof TO]?: TO[K] extends null ? undefined : Exclude<TO[K], null>;
|
|
19
|
+
};
|
|
26
20
|
|
|
27
21
|
export type ExecuteId = string | "global";
|
|
28
22
|
|