Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
public
/
sequelize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
不要怂,就是干,撸起袖子干!
Commit 2249ded1
authored
Jan 16, 2021
by
papb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(types): remove part forgotten in #12175
1 parent
c7ab77e5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
21 deletions
types/lib/sequelize.d.ts
types/lib/sequelize.d.ts
View file @
2249ded
...
...
@@ -1185,27 +1185,6 @@ export class Sequelize extends Hooks {
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.
*
* By default, the function will return two arguments: an array of results, and a metadata object,
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment