@forklaunch/core 1.6.3 → 1.6.4
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.
|
@@ -51,8 +51,10 @@ export type ResolvedEntity<T> = {
|
|
|
51
51
|
* `ResolvedEntity` applied through a relation wrapper: `Collection<E>` becomes
|
|
52
52
|
* `Collection<ResolvedEntity<E>>`, references likewise, and a bare entity
|
|
53
53
|
* object (a `manyToOne` without `.ref()`) resolves in place. Scalars, dates,
|
|
54
|
-
* enums, `null` and `
|
|
55
|
-
* carries the `IndexHints` slot is an entity.
|
|
54
|
+
* enums, `null`, `undefined` and `any` pass through untouched: only a value
|
|
55
|
+
* that carries the `IndexHints` slot is an entity. (`any` is checked first
|
|
56
|
+
* because `keyof any` contains every symbol, and a shape entity that declares
|
|
57
|
+
* `fp.enum()` without naming the enum infers its value as `any`.)
|
|
56
58
|
*/
|
|
57
|
-
export type ResolvedRelation<V> = V extends Collection<infer E extends object, infer O extends object> ? Collection<ResolvedEntity<E>, O> : V extends Reference<infer E extends object> ? Reference<ResolvedEntity<E>> : typeof IndexHints extends keyof V ? ResolvedEntity<V> : V;
|
|
59
|
+
export type ResolvedRelation<V> = 0 extends 1 & V ? V : V extends Collection<infer E extends object, infer O extends object> ? Collection<ResolvedEntity<E>, O> : V extends Reference<infer E extends object> ? Reference<ResolvedEntity<E>> : typeof IndexHints extends keyof V ? ResolvedEntity<V> : V;
|
|
58
60
|
//# sourceMappingURL=mikroOrm.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mikroOrm.types.d.ts","sourceRoot":"","sources":["../../src/persistence/mikroOrm.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACV,QAAQ,EACR,SAAS,EACV,MAAM,iBAAiB,CAAC;AAEzB;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,UAAU,CA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AAC,CAAC,GACjB,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forklaunch/core",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.4",
|
|
4
4
|
"description": "forklaunch-js core package. Contains useful building blocks.",
|
|
5
5
|
"homepage": "https://github.com/forklaunch/forklaunch-js#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -108,8 +108,8 @@
|
|
|
108
108
|
"redis": "^6.2.1",
|
|
109
109
|
"uuid": "^14.0.2",
|
|
110
110
|
"zod": "^4.6.5",
|
|
111
|
-
"@forklaunch/
|
|
112
|
-
"@forklaunch/
|
|
111
|
+
"@forklaunch/common": "^1.2.27",
|
|
112
|
+
"@forklaunch/validator": "^1.2.28"
|
|
113
113
|
},
|
|
114
114
|
"devDependencies": {
|
|
115
115
|
"@eslint/js": "^10.0.1",
|