@mikro-orm/core
Advanced tools
@@ -84,3 +84,3 @@ import type { EntityManager } from '../EntityManager.js'; | ||
| }>; | ||
| onCreate(onCreate: (entity: any, em: EntityManager) => Value): PropertyChain<Value, Options & { | ||
| onCreate(onCreate: (entity: any, em: EntityManager) => MaybeArray<Value, Options>): PropertyChain<Value, Options & { | ||
| onCreate: (...args: any[]) => any; | ||
@@ -97,3 +97,3 @@ }>; | ||
| }>; | ||
| onUpdate(onUpdate: (entity: any, em: EntityManager) => Value): PropertyChain<Value, Options>; | ||
| onUpdate(onUpdate: (entity: any, em: EntityManager) => MaybeArray<Value, Options>): PropertyChain<Value, Options>; | ||
| fieldNames(...fieldNames: string[]): PropertyChain<Value, Options>; | ||
@@ -276,3 +276,3 @@ type(type: PropertyValueType): PropertyChain<Value, Options>; | ||
| */ | ||
| onCreate(onCreate: (entity: any, em: EntityManager) => Value): Pick<UniversalPropertyOptionsBuilder<Value, Options & { | ||
| onCreate(onCreate: (entity: any, em: EntityManager) => MaybeArray<Value, Options>): Pick<UniversalPropertyOptionsBuilder<Value, Options & { | ||
| onCreate: (...args: any[]) => any; | ||
@@ -283,3 +283,3 @@ }, IncludeKeys>, IncludeKeys>; | ||
| */ | ||
| onUpdate(onUpdate: (entity: any, em: EntityManager) => Value): Pick<UniversalPropertyOptionsBuilder<Value, Options, IncludeKeys>, IncludeKeys>; | ||
| onUpdate(onUpdate: (entity: any, em: EntityManager) => MaybeArray<Value, Options>): Pick<UniversalPropertyOptionsBuilder<Value, Options, IncludeKeys>, IncludeKeys>; | ||
| /** | ||
@@ -286,0 +286,0 @@ * Specify default column value for {@link https://mikro-orm.io/docs/schema-generator Schema Generator}. |
+1
-1
| { | ||
| "name": "@mikro-orm/core", | ||
| "version": "7.1.4-dev.11", | ||
| "version": "7.1.4-dev.12", | ||
| "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
@@ -144,3 +144,3 @@ import { clone } from './clone.js'; | ||
| static PK_SEPARATOR = '~~~'; | ||
| static #ORM_VERSION = '7.1.4-dev.11'; | ||
| static #ORM_VERSION = '7.1.4-dev.12'; | ||
| /** | ||
@@ -147,0 +147,0 @@ * Checks if the argument is instance of `Object`. Returns false for arrays. |
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
1563608
0.01%