@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
Parameter | Type |
---|---|
fields | DataTypeFields |
Returns
Source
data-types/src/types/index.ts:13
getType()
getType(
__namedParameters
):default
Parameters
Parameter | Type |
---|---|
__namedParameters | GetTypeArg |
Returns
Source
data-types/src/types/index.ts:121
getTypes()
getTypes(
fields
,groupedFields
,version
):default
[]
Instantiate all of the types for the group
Parameters
Parameter | Type | Default value |
---|---|---|
fields | DataTypeFields | undefined |
groupedFields | GroupedFields | undefined |
version | number | LATEST_VERSION |
Returns
default
[]
Todo
support multiple levels deep nesting