@mikro-orm/core 7.0.0-dev.122 → 7.0.0-dev.123

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.
@@ -438,7 +438,7 @@ export interface ManyToManyOptions<Owner, Target> extends ReferenceOptions<Owner
438
438
  createForeignKeyConstraint?: boolean;
439
439
  }
440
440
  export interface EmbeddedOptions<Owner, Target> extends PropertyOptions<Owner> {
441
- entity?: () => EntityName<Target> | EntityName<Target>[];
441
+ entity?: () => EntityName<Target> | EntityName[];
442
442
  prefix?: string | boolean;
443
443
  prefixMode?: EmbeddedPrefixMode;
444
444
  object?: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mikro-orm/core",
3
3
  "type": "module",
4
- "version": "7.0.0-dev.122",
4
+ "version": "7.0.0-dev.123",
5
5
  "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.",
6
6
  "exports": {
7
7
  "./package.json": "./package.json",
package/typings.d.ts CHANGED
@@ -209,9 +209,7 @@ export type AnyEntity<T = any> = Partial<T>;
209
209
  export type EntityClass<T = any> = Function & {
210
210
  prototype: T;
211
211
  };
212
- export type EntityName<T = any> = EntityClass<T> | EntityCtor<T> | EntitySchema<T, any> | {
213
- name: string;
214
- };
212
+ export type EntityName<T = any> = EntityClass<T> | EntityCtor<T> | EntitySchema<T, any>;
215
213
  export type GetRepository<Entity extends {
216
214
  [k: PropertyKey]: any;
217
215
  }, Fallback> = Entity[typeof EntityRepositoryType] extends EntityRepository<any> | undefined ? NonNullable<Entity[typeof EntityRepositoryType]> : Fallback;
package/utils/Utils.js CHANGED
@@ -123,7 +123,7 @@ export function parseJsonSafe(value) {
123
123
  }
124
124
  export class Utils {
125
125
  static PK_SEPARATOR = '~~~';
126
- static #ORM_VERSION = '7.0.0-dev.122';
126
+ static #ORM_VERSION = '7.0.0-dev.123';
127
127
  /**
128
128
  * Checks if the argument is instance of `Object`. Returns false for arrays.
129
129
  */