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 c3c767e4
authored
Oct 16, 2019
by
Phil Gebauer
Committed by
Sushant
Oct 16, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(types): add Buffer to WhereValue type (#11499)
1 parent
3a141ac8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
types/lib/model.d.ts
types/test/where.ts
types/lib/model.d.ts
View file @
c3c767e
...
@@ -341,6 +341,7 @@ export type WhereValue =
...
@@ -341,6 +341,7 @@ export type WhereValue =
|
string
// literal value
|
string
// literal value
|
number
// literal value
|
number
// literal value
|
boolean
// literal value
|
boolean
// literal value
|
Buffer
// literal value
|
null
|
null
|
WhereOperators
|
WhereOperators
|
WhereAttributeHash
// for JSON columns
|
WhereAttributeHash
// for JSON columns
...
...
types/test/where.ts
View file @
c3c767e
...
@@ -9,6 +9,18 @@ let where: WhereOptions;
...
@@ -9,6 +9,18 @@ let where: WhereOptions;
// From https://sequelize.org/master/en/v4/docs/querying/
// From https://sequelize.org/master/en/v4/docs/querying/
/**
* Literal values
* @see WhereValue
*/
where
=
{
string
:
'foo'
,
number
:
1
,
boolean
:
true
,
buffer
:
Buffer
.
alloc
(
0
),
null
:
null
,
};
// Operators
// Operators
const
and
:
AndOperator
=
{
const
and
:
AndOperator
=
{
...
...
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