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 22d874c3
authored
Sep 26, 2019
by
Kunal Nain
Committed by
Sushant
Sep 27, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(types): Model.primaryKeyAttributes (#11406)
1 parent
fb3f0734
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
types/lib/model.d.ts
types/test/model.ts
types/lib/model.d.ts
View file @
22d874c
...
@@ -1535,6 +1535,11 @@ export abstract class Model<T = any, T2 = any> extends Hooks {
...
@@ -1535,6 +1535,11 @@ export abstract class Model<T = any, T2 = any> extends Hooks {
public
static
readonly
primaryKeyAttribute
:
string
;
public
static
readonly
primaryKeyAttribute
:
string
;
/**
/**
* The name of the primary key attributes
*/
public
static
readonly
primaryKeyAttributes
:
string
[];
/**
* An object hash from alias to association object
* An object hash from alias to association object
*/
*/
public
static
readonly
associations
:
{
public
static
readonly
associations
:
{
...
...
types/test/model.ts
View file @
22d874c
...
@@ -67,3 +67,8 @@ UserModel.findCreateFind({
...
@@ -67,3 +67,8 @@ UserModel.findCreateFind({
}
}
})
})
/**
* Test for primaryKeyAttributes.
*/
class
TestModel
extends
Model
{};
TestModel
.
primaryKeyAttributes
;
\ No newline at end of file
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