Skip to main content

@terascope/data-mate / builder/utils

builder/utils

Functions

_newBuilder()

_newBuilder<T>(data, options): Builder<T>

Type parameters

Type parameter
T

Parameters

ParameterType
dataWritableData<any>
optionsBuilderOptions

Returns

Builder<T>

Source

data-mate/src/builder/utils.ts:40


getBuildersForConfig()

getBuildersForConfig<T>(config, size): Map<keyof T, Builder<unknown>>

Type parameters

Type parameterValue
T extends Record<string, any>Record<string, unknown>

Parameters

ParameterType
configDataTypeConfig
sizenumber

Returns

Map<keyof T, Builder<unknown>>

Source

data-mate/src/builder/utils.ts:16