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 6e0b1376
authored
Jul 15, 2019
by
pch18
Committed by
Simon Schick
Jul 14, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(types): text length is string constant (#11098)
1 parent
aec01048
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
types/lib/data-types.d.ts
types/lib/data-types.d.ts
View file @
6e0b137
...
...
@@ -102,6 +102,8 @@ export interface CharDataType extends StringDataType {
}
export
interface
CharDataTypeOptions
extends
StringDataTypeOptions
{}
export
type
TextLength
=
'tiny'
|
'medium'
|
'long'
;
/**
* An (un)limited length text column. Available lengths: `tiny`, `medium`, `long`
...
...
@@ -109,7 +111,7 @@ export interface CharDataTypeOptions extends StringDataTypeOptions {}
export
const
TEXT
:
TextDataTypeConstructor
;
interface
TextDataTypeConstructor
extends
AbstractDataTypeConstructor
{
new
(
length
?:
number
):
TextDataType
;
new
(
length
?:
TextLength
):
TextDataType
;
(
options
?:
TextDataTypeOptions
):
TextDataType
;
}
...
...
@@ -119,7 +121,7 @@ export interface TextDataType extends AbstractDataType {
}
export
interface
TextDataTypeOptions
{
length
?:
number
;
length
?:
TextLength
;
}
export
const
NUMBER
:
NumberDataTypeConstructor
;
...
...
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