@cheetah.js/orm 0.1.48 → 0.1.49

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.
@@ -47,7 +47,7 @@ export type SnapshotConstraintInfo = {
47
47
  consDef: string;
48
48
  type: string;
49
49
  };
50
- export interface ConnectionSettings<T extends Partial<DriverInterface> = Partial<DriverInterface>> {
50
+ export interface ConnectionSettings<T extends DriverInterface = DriverInterface> {
51
51
  host?: string;
52
52
  port?: number;
53
53
  username?: string;
@@ -55,7 +55,7 @@ export interface ConnectionSettings<T extends Partial<DriverInterface> = Partial
55
55
  database?: string;
56
56
  connectionString?: string;
57
57
  ssl?: boolean;
58
- driver: T;
58
+ driver: new (options: ConnectionSettings<T>) => T;
59
59
  entities?: Function[] | string;
60
60
  migrationPath?: string;
61
61
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cheetah.js/orm",
3
- "version": "0.1.48",
3
+ "version": "0.1.49",
4
4
  "description": "A simple ORM for Cheetah.js",
5
5
  "type": "commonjs",
6
6
  "main": "dist/index.js",
@@ -50,5 +50,5 @@
50
50
  "bun",
51
51
  "value-object"
52
52
  ],
53
- "gitHead": "b5e1a37c74002278ec28cff0cab8f58d66cbf0b9"
53
+ "gitHead": "89bb2e0f01226bc4d3e46a24644dbe17cf043150"
54
54
  }