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 e59b3ff2
authored
Apr 22, 2020
by
Sam Dhondt
Committed by
GitHub
Apr 22, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
types: correct Model.init return type (#12148)
1 parent
740b4286
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
types/lib/model.d.ts
types/lib/model.d.ts
View file @
e59b3ff
...
...
@@ -1591,8 +1591,9 @@ export abstract class Model<T = any, T2 = any> extends Hooks {
* An object, where each attribute is a column of the table. Each column can be either a DataType, a
* string or a type-description object, with the properties described below:
* @param options These options are merged with the default define options provided to the Sequelize constructor
* @return Return the initialized model
*/
public
static
init
<
M
extends
Model
=
Model
>
(
this
:
ModelCtor
<
M
>
,
attributes
:
ModelAttributes
<
M
>
,
options
:
InitOptions
<
M
>
):
void
;
public
static
init
<
M
extends
Model
=
Model
>
(
this
:
ModelCtor
<
M
>
,
attributes
:
ModelAttributes
<
M
>
,
options
:
InitOptions
<
M
>
):
Model
;
/**
* Remove attribute from model definition
...
...
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