@mikro-orm/core
Advanced tools
@@ -115,3 +115,3 @@ import type { EntityManager } from '../EntityManager.js'; | ||
| serializedPrimaryKey(serializedPrimaryKey?: boolean): PropertyChain<Value, Options>; | ||
| serializer(serializer: (value: Value, options?: SerializeOptions<any>) => any): PropertyChain<Value, Options>; | ||
| serializer(serializer: (value: SerializerValue<Value, Options>, options?: SerializeOptions<any>) => any): PropertyChain<Value, Options>; | ||
| serializedName(serializedName: string): PropertyChain<Value, Options>; | ||
@@ -799,2 +799,4 @@ groups(...groups: string[]): PropertyChain<Value, Options>; | ||
| } ? Value[] : Value; | ||
| /** The runtime value passed to a custom serializer — the property value as stored on the entity (e.g. `Collection`/`Ref` for relations). Skips `MaybeMapToPk`, as its `Primary<Value>` branch is too costly for the type checker. */ | ||
| type SerializerValue<Value, Options> = MaybeNullable<MaybeRelationRef<MaybeArray<Value, Options>, Options>, Options>; | ||
| type MaybeMapToPk<Value, Options> = Options extends { | ||
@@ -801,0 +803,0 @@ mapToPk: true; |
@@ -478,3 +478,3 @@ import { types } from '../types/index.js'; | ||
| mappedBy(mappedBy) { | ||
| return new UniversalPropertyOptionsBuilder({ ...this['~options'], mappedBy }); | ||
| return this.assignOptions({ mappedBy }); | ||
| } | ||
@@ -481,0 +481,0 @@ } |
+1
-1
| { | ||
| "name": "@mikro-orm/core", | ||
| "version": "7.1.15-dev.3", | ||
| "version": "7.1.15-dev.4", | ||
| "description": "TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JavaScript.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
+1
-1
@@ -156,3 +156,3 @@ import { clone } from './clone.js'; | ||
| static PK_SEPARATOR = '~~~'; | ||
| static #ORM_VERSION = '7.1.15-dev.3'; | ||
| static #ORM_VERSION = '7.1.15-dev.4'; | ||
| /** | ||
@@ -159,0 +159,0 @@ * Checks if the argument is instance of `Object`. Returns false for arrays. |
1595117
0.02%33966
0.01%