@mikro-orm/sql 7.1.5 → 7.1.6-dev.0

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/typings.d.ts +5 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikro-orm/sql",
3
- "version": "7.1.5",
3
+ "version": "7.1.6-dev.0",
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
  "keywords": [
6
6
  "data-mapper",
@@ -53,7 +53,7 @@
53
53
  "@mikro-orm/core": "^7.1.5"
54
54
  },
55
55
  "peerDependencies": {
56
- "@mikro-orm/core": "7.1.5"
56
+ "@mikro-orm/core": "7.1.6-dev.0"
57
57
  },
58
58
  "engines": {
59
59
  "node": ">= 22.17.0"
package/typings.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { Generated, Kysely } from 'kysely';
2
- import type { CheckCallback, DeferMode, Dictionary, EntityName, EntityProperty, EntitySchemaWithMeta, FilterQuery, GroupOperator, IndexColumnOptions, InferEntityName, Opt, Primary, PrimaryProperty, QueryFlag, QueryOrderMap, RawQueryFragment, RoutineIgnoreField, Scalar, Type } from '@mikro-orm/core';
2
+ import type { CheckCallback, DeferMode, Dictionary, EntityName, EntityProperty, EntitySchemaWithMeta, ExtractDefineEntityProperties, FilterQuery, GroupOperator, IndexColumnOptions, InferEntityName, Opt, Primary, PrimaryProperty, QueryFlag, QueryOrderMap, RawQueryFragment, RoutineIgnoreField, Scalar, Type } from '@mikro-orm/core';
3
3
  import type { JoinType, QueryType } from './query/enums.js';
4
4
  import type { DatabaseSchema } from './schema/DatabaseSchema.js';
5
5
  import type { DatabaseTable } from './schema/DatabaseTable.js';
@@ -307,7 +307,10 @@ export interface ICriteriaNode<T extends object> {
307
307
  getPivotPath(path: string): string;
308
308
  }
309
309
  export type MaybeReturnType<T> = T extends (...args: any[]) => infer R ? R : T;
310
- export type InferEntityProperties<Schema> = Schema extends EntitySchemaWithMeta<any, any, any, any, infer Properties> ? Properties : never;
310
+ export type InferEntityProperties<Schema> = Schema extends EntitySchemaWithMeta<any, any, any, infer Base, infer Properties> ? MergeInheritedProperties<Base, Properties> : never;
311
+ type MergeInheritedProperties<Base, Properties extends Record<string, any>> = [
312
+ ExtractDefineEntityProperties<Base>
313
+ ] extends [infer BaseProps extends Record<string, any>] ? [BaseProps] extends [never] ? Properties : Omit<BaseProps, keyof Properties> & Properties : Properties;
311
314
  export type InferKyselyDB<TEntities extends {
312
315
  name: string;
313
316
  }, TOptions extends MikroKyselyPluginOptions = {}> = MapValueAsTable<MapTableName<TEntities, TOptions>, TOptions>;