@forklaunch/core 1.6.4 → 1.6.5

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,10 +51,13 @@ 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`, `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`.)
54
+ * enums, `null` and `undefined` pass through untouched: only a value that
55
+ * carries the `IndexHints` slot is an entity.
56
+ *
57
+ * Fields must not be `any`: a conditional type on `any` takes every branch,
58
+ * so an `any` field would resolve to a union no concrete value satisfies.
59
+ * `fp.enum()` with no items infers `any`; a shape entity that stands in for
60
+ * an app-defined enum should say `fp.enum<string[]>()`.
58
61
  */
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;
62
+ 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;
60
63
  //# 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;;;;;;;;;;;;;;;;;;;;;;;;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GAAG,KAAK,GAAG,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACvE,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAC5B,CAAC,SAAS,UAAU,CAAC,MAAM,CAAC,SAAS,MAAM,EAAE,MAAM,CAAC,SAAS,MAAM,CAAC,GAChE,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,GAChC,CAAC,SAAS,SAAS,CAAC,MAAM,CAAC,SAAS,MAAM,CAAC,GACzC,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,GAC5B,OAAO,UAAU,SAAS,MAAM,CAAC,GAC/B,cAAc,CAAC,CAAC,CAAC,GACjB,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forklaunch/core",
3
- "version": "1.6.4",
3
+ "version": "1.6.5",
4
4
  "description": "forklaunch-js core package. Contains useful building blocks.",
5
5
  "homepage": "https://github.com/forklaunch/forklaunch-js#readme",
6
6
  "bugs": {