Skip to content

Commit 2249ded

Browse files
committed
fix(types): remove part forgotten in sequelize#12175
1 parent c7ab77e commit 2249ded

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

types/lib/sequelize.d.ts

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,27 +1184,6 @@ export class Sequelize extends Hooks {
11841184
*/
11851185
public isDefined(modelName: string): boolean;
11861186

1187-
/**
1188-
* Imports a model defined in another file
1189-
*
1190-
* Imported models are cached, so multiple calls to import with the same path will not load the file
1191-
* multiple times
1192-
*
1193-
* See https://github.com/sequelize/sequelize/blob/master/examples/using-multiple-model-files/Task.js for a
1194-
* short example of how to define your models in separate files so that they can be imported by
1195-
* sequelize.import
1196-
*
1197-
* @param path The path to the file that holds the model you want to import. If the part is relative, it
1198-
* will be resolved relatively to the calling file
1199-
*
1200-
* @param defineFunction An optional function that provides model definitions. Useful if you do not
1201-
* want to use the module root as the define function
1202-
*/
1203-
public import<T extends typeof Model>(
1204-
path: string,
1205-
defineFunction?: (sequelize: Sequelize, dataTypes: typeof DataTypes) => T
1206-
): T;
1207-
12081187
/**
12091188
* Execute a query on the DB, optionally bypassing all the Sequelize goodness.
12101189
*

0 commit comments

Comments
 (0)