不要怂,就是干,撸起袖子干!

Commit 2249ded1 by papb

fix(types): remove part forgotten in #12175

1 parent c7ab77e5
Showing with 0 additions and 21 deletions
...@@ -1185,27 +1185,6 @@ export class Sequelize extends Hooks { ...@@ -1185,27 +1185,6 @@ export class Sequelize extends Hooks {
public isDefined(modelName: string): boolean; public isDefined(modelName: string): boolean;
/** /**
* Imports a model defined in another file
*
* Imported models are cached, so multiple calls to import with the same path will not load the file
* multiple times
*
* See https://github.com/sequelize/sequelize/blob/master/examples/using-multiple-model-files/Task.js for a
* short example of how to define your models in separate files so that they can be imported by
* sequelize.import
*
* @param path The path to the file that holds the model you want to import. If the part is relative, it
* will be resolved relatively to the calling file
*
* @param defineFunction An optional function that provides model definitions. Useful if you do not
* want to use the module root as the define function
*/
public import<T extends typeof Model>(
path: string,
defineFunction?: (sequelize: Sequelize, dataTypes: typeof DataTypes) => T
): T;
/**
* Execute a query on the DB, optionally bypassing all the Sequelize goodness. * Execute a query on the DB, optionally bypassing all the Sequelize goodness.
* *
* By default, the function will return two arguments: an array of results, and a metadata object, * By default, the function will return two arguments: an array of results, and a metadata object,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!