Updating typing.
This commit is contained in:
parent
7c2bfec22c
commit
4c7103e5fd
|
@ -134,6 +134,12 @@ export const JsonTypes = [
|
||||||
FieldType.ARRAY,
|
FieldType.ARRAY,
|
||||||
]
|
]
|
||||||
|
|
||||||
|
export type FormulaResponseType =
|
||||||
|
| FieldType.STRING
|
||||||
|
| FieldType.NUMBER
|
||||||
|
| FieldType.BOOLEAN
|
||||||
|
| FieldType.DATETIME
|
||||||
|
|
||||||
export const NumericTypes = [FieldType.NUMBER, FieldType.BIGINT]
|
export const NumericTypes = [FieldType.NUMBER, FieldType.BIGINT]
|
||||||
|
|
||||||
export function isNumeric(type: FieldType) {
|
export function isNumeric(type: FieldType) {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// all added by grid/table when defining the
|
// all added by grid/table when defining the
|
||||||
// column size, position and whether it can be viewed
|
// column size, position and whether it can be viewed
|
||||||
import { FieldType } from "../row"
|
import { FieldType, FormulaResponseType } from "../row"
|
||||||
import {
|
import {
|
||||||
AutoFieldSubType,
|
AutoFieldSubType,
|
||||||
AutoReason,
|
AutoReason,
|
||||||
|
@ -115,11 +115,7 @@ export interface FormulaFieldMetadata extends BaseFieldSchema {
|
||||||
type: FieldType.FORMULA
|
type: FieldType.FORMULA
|
||||||
formula: string
|
formula: string
|
||||||
formulaType?: FormulaType
|
formulaType?: FormulaType
|
||||||
responseType?:
|
responseType?: FormulaResponseType
|
||||||
| FieldType.STRING
|
|
||||||
| FieldType.NUMBER
|
|
||||||
| FieldType.BOOLEAN
|
|
||||||
| FieldType.DATETIME
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface AIFieldMetadata extends BaseFieldSchema {
|
export interface AIFieldMetadata extends BaseFieldSchema {
|
||||||
|
|
Loading…
Reference in New Issue