drizzle-orm 0.10.16 → 0.10.17

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.
@@ -28,7 +28,7 @@ export declare abstract class AbstractColumn<T extends ColumnType, TNullable ext
28
28
  getParentName: () => string;
29
29
  abstract foreignKey<ITable extends AbstractTable<ITable>>(table: {
30
30
  new (db: DB): ITable;
31
- }, callback: (table: ITable) => AbstractColumn<T, boolean, boolean, TParent>, onConstraint: {
31
+ }, callback: (table: ITable) => AbstractColumn<any, boolean, boolean, TParent>, onConstraint: {
32
32
  onDelete?: 'CASCADE' | 'RESTRICT' | 'SET NULL' | 'SET DEFAULT';
33
33
  onUpdate?: 'CASCADE' | 'RESTRICT' | 'SET NULL' | 'SET DEFAULT';
34
34
  }): AbstractColumn<T, TNullable, TAutoIncrement>;
@@ -45,11 +45,11 @@ export declare class Column<T extends ColumnType, TNullable extends boolean = tr
45
45
  constructor(parent: TParent, columnName: string, columnType: T);
46
46
  notNull(): Column<T, TAutoIncrement extends true ? true : TNullable extends true ? false : true, TAutoIncrement, TParent>;
47
47
  primaryKey(): Column<T, TAutoIncrement extends true ? true : false, TAutoIncrement, TParent>;
48
- foreignKey(table: new (db: DB) => TParent, callback: (table: this) => Column<T, boolean, boolean, TParent>, onConstraint?: {
48
+ foreignKey(table: new (db: DB) => TParent, callback: (table: this) => Column<any, boolean, boolean, TParent>, onConstraint?: {
49
49
  onDelete?: 'CASCADE' | 'RESTRICT' | 'SET NULL' | 'SET DEFAULT';
50
50
  onUpdate?: 'CASCADE' | 'RESTRICT' | 'SET NULL' | 'SET DEFAULT';
51
51
  }): Column<T, TNullable, TAutoIncrement, TParent>;
52
- foreignKey<ITable extends AbstractTable<ITable>>(table: new (db: DB) => ITable, callback: (table: ITable) => Column<T, boolean, boolean, ITable>, onConstraint?: {
52
+ foreignKey<ITable extends AbstractTable<ITable>>(table: new (db: DB) => ITable, callback: (table: ITable) => Column<any, boolean, boolean, ITable>, onConstraint?: {
53
53
  onDelete?: 'CASCADE' | 'RESTRICT' | 'SET NULL' | 'SET DEFAULT';
54
54
  onUpdate?: 'CASCADE' | 'RESTRICT' | 'SET NULL' | 'SET DEFAULT';
55
55
  }): Column<T, TNullable, TAutoIncrement, TParent>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-orm",
3
- "version": "0.10.16",
3
+ "version": "0.10.17",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",