@mikro-orm/core 6.3.5-dev.14 → 6.3.5-dev.15

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikro-orm/core",
3
- "version": "6.3.5-dev.14",
3
+ "version": "6.3.5-dev.15",
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.2.0",
66
66
  "globby": "11.1.0",
67
- "mikro-orm": "6.3.5-dev.14",
67
+ "mikro-orm": "6.3.5-dev.15",
68
68
  "reflect-metadata": "0.2.2"
69
69
  }
70
70
  }
@@ -1,8 +1,9 @@
1
- import { StringType } from './StringType';
2
1
  import type { EntityProperty } from '../typings';
3
2
  import type { Platform } from '../platforms/Platform';
4
- export declare class UnknownType extends StringType {
3
+ import { Type } from './Type';
4
+ export declare class UnknownType extends Type<unknown | null | undefined, unknown | null | undefined> {
5
5
  getColumnType(prop: EntityProperty, platform: Platform): string;
6
6
  get runtimeType(): string;
7
7
  compareAsType(): string;
8
+ ensureComparable(): boolean;
8
9
  }
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UnknownType = void 0;
4
- const StringType_1 = require("./StringType");
5
- class UnknownType extends StringType_1.StringType {
4
+ const Type_1 = require("./Type");
5
+ class UnknownType extends Type_1.Type {
6
6
  getColumnType(prop, platform) {
7
7
  return prop.columnTypes?.[0] ?? platform.getVarcharTypeDeclarationSQL(prop);
8
8
  }
@@ -12,5 +12,8 @@ class UnknownType extends StringType_1.StringType {
12
12
  compareAsType() {
13
13
  return 'unknown';
14
14
  }
15
+ ensureComparable() {
16
+ return false;
17
+ }
15
18
  }
16
19
  exports.UnknownType = UnknownType;