不要怂,就是干,撸起袖子干!

Commit 6e0b1376 by pch18 Committed by Simon Schick

fix(types): text length is string constant (#11098)

1 parent aec01048
Showing with 4 additions and 2 deletions
......@@ -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;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!