@mikro-orm/core 7.0.0-dev.174 → 7.0.0-dev.175
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 +3 -1
- package/metadata/EntitySchema.d.ts +2 -0
- package/package.json +1 -1
- package/utils/Utils.js +1 -1
package/entity/defineEntity.d.ts
CHANGED
|
@@ -417,7 +417,9 @@ declare const propertyBuilders: {
|
|
|
417
417
|
export interface EntityMetadataWithProperties<TName extends string, TTableName extends string, TProperties extends Record<string, any>, TPK extends (keyof TProperties)[] | undefined = undefined, TBase = never> extends Omit<Partial<EntityMetadata<InferEntityFromProperties<TProperties, TPK, TBase>>>, 'properties' | 'extends' | 'primaryKeys' | 'hooks' | 'discriminatorColumn' | 'versionProperty' | 'concurrencyCheckKeys' | 'serializedPrimaryKey' | 'indexes' | 'uniques'> {
|
|
418
418
|
name: TName;
|
|
419
419
|
tableName?: TTableName;
|
|
420
|
-
extends?:
|
|
420
|
+
extends?: {
|
|
421
|
+
'~entity': TBase;
|
|
422
|
+
} | EntityCtor<TBase>;
|
|
421
423
|
properties: TProperties | ((properties: typeof propertyBuilders) => TProperties);
|
|
422
424
|
primaryKeys?: TPK & InferPrimaryKey<TProperties>[];
|
|
423
425
|
hooks?: DefineEntityHooks<InferEntityFromProperties<TProperties, TPK, TBase>>;
|
|
@@ -45,6 +45,8 @@ export declare class EntitySchema<Entity = any, Base = never, Class extends Enti
|
|
|
45
45
|
* so we can use the class in `entities` option just like the EntitySchema instance.
|
|
46
46
|
*/
|
|
47
47
|
static REGISTRY: Map<Partial<any>, EntitySchema<any, never, EntityCtor<any>>>;
|
|
48
|
+
/** @internal Type-level marker for fast entity type inference */
|
|
49
|
+
readonly '~entity': Entity;
|
|
48
50
|
private readonly _meta;
|
|
49
51
|
private internal;
|
|
50
52
|
private initialized;
|
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.
|
|
4
|
+
"version": "7.0.0-dev.175",
|
|
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/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.
|
|
126
|
+
static #ORM_VERSION = '7.0.0-dev.175';
|
|
127
127
|
/**
|
|
128
128
|
* Checks if the argument is instance of `Object`. Returns false for arrays.
|
|
129
129
|
*/
|