Skip to main content

@terascope/data-types / types

types

Type Aliases

GetTypeArg

GetTypeArg: object

Type declaration

config

config: DataTypeFieldConfig

field

field: string

version?

optional version: number

Source

data-types/src/types/index.ts:115

Variables

LATEST_VERSION

const LATEST_VERSION: 1 = 1

Source

data-types/src/types/index.ts:11

Functions

getGroupedFields()

getGroupedFields(fields): GroupedFields

Parameters

ParameterType
fieldsDataTypeFields

Returns

GroupedFields

Source

data-types/src/types/index.ts:13


getType()

getType(__namedParameters): default

Parameters

ParameterType
__namedParametersGetTypeArg

Returns

default

Source

data-types/src/types/index.ts:121


getTypes()

getTypes(fields, groupedFields, version): default[]

Instantiate all of the types for the group

Parameters

ParameterTypeDefault value
fieldsDataTypeFieldsundefined
groupedFieldsGroupedFieldsundefined
versionnumberLATEST_VERSION

Returns

default[]

Todo

support multiple levels deep nesting

Source

data-types/src/types/index.ts:33