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 0caf84b3
authored
Apr 12, 2019
by
杨奕
Committed by
Sushant
Apr 12, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(types): uniqueKey support for BelongsToManyOptions interface (#10751)
1 parent
728707cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
types/lib/associations/belongs-to-many.d.ts
types/lib/associations/belongs-to-many.d.ts
View file @
0caf84b
...
...
@@ -67,6 +67,11 @@ export interface BelongsToManyOptions extends ManyToManyOptions {
* Should the join model have timestamps
*/
timestamps
?:
boolean
;
/**
* The unique key name to override the autogenerated one when primary key is not present on through model
*/
uniqueKey
?:
string
;
}
export
class
BelongsToMany
<
S
extends
Model
=
Model
,
T
extends
Model
=
Model
>
extends
Association
<
S
,
T
>
{
...
...
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