@mikro-orm/core 6.5.8-dev.12 → 6.5.8-dev.14
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.
- package/entity/defineEntity.d.ts +6 -1
- package/package.json +2 -2
package/entity/defineEntity.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import type { ManyToOneOptions } from '../decorators/ManyToOne';
|
|
|
6
6
|
import type { OneToManyOptions } from '../decorators/OneToMany';
|
|
7
7
|
import type { OneToOneOptions } from '../decorators/OneToOne';
|
|
8
8
|
import type { ManyToManyOptions } from '../decorators/ManyToMany';
|
|
9
|
-
import type { AnyString, GeneratedColumnCallback, Constructor, CheckCallback, FilterQuery, EntityName, Dictionary, EntityMetadata, PrimaryKeyProp, Hidden, Opt } from '../typings';
|
|
9
|
+
import type { AnyString, GeneratedColumnCallback, Constructor, CheckCallback, FilterQuery, EntityName, Dictionary, EntityMetadata, PrimaryKeyProp, Hidden, Opt, EntityClass } from '../typings';
|
|
10
10
|
import type { Reference, ScalarReference } from './Reference';
|
|
11
11
|
import type { SerializeOptions } from '../serialization/EntitySerializer';
|
|
12
12
|
import type { Cascade, DeferMode, LoadStrategy, QueryOrderMap } from '../enums';
|
|
@@ -506,6 +506,11 @@ export declare function defineEntity<Properties extends Record<string, any>, con
|
|
|
506
506
|
properties: Properties | ((properties: typeof propertyBuilders) => Properties);
|
|
507
507
|
primaryKeys?: PK & InferPrimaryKey<Properties>[];
|
|
508
508
|
}): EntitySchema<InferEntityFromProperties<Properties, PK>, never>;
|
|
509
|
+
export declare function defineEntity<Entity = any, Base = never>(meta: Omit<Partial<EntityMetadata<Entity>>, 'properties'> & {
|
|
510
|
+
class: EntityClass<Entity>;
|
|
511
|
+
extends?: string | EntitySchema<Base>;
|
|
512
|
+
properties: Record<string, any> | ((properties: typeof propertyBuilders) => Record<string, any>);
|
|
513
|
+
}): EntitySchema<Entity, Base>;
|
|
509
514
|
export declare namespace defineEntity {
|
|
510
515
|
var properties: {
|
|
511
516
|
bigint: <Mode extends "bigint" | "number" | "string" = "bigint">(mode?: Mode) => PropertyOptionsBuilder<(Mode extends "bigint" ? bigint : Mode extends "number" ? number : string) & {}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/core",
|
|
3
|
-
"version": "6.5.8-dev.
|
|
3
|
+
"version": "6.5.8-dev.14",
|
|
4
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
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.mjs",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"esprima": "4.0.1",
|
|
65
65
|
"fs-extra": "11.3.2",
|
|
66
66
|
"globby": "11.1.0",
|
|
67
|
-
"mikro-orm": "6.5.8-dev.
|
|
67
|
+
"mikro-orm": "6.5.8-dev.14",
|
|
68
68
|
"reflect-metadata": "0.2.2"
|
|
69
69
|
}
|
|
70
70
|
}
|