@terascope/data-mate / builder/utils
builder/utils
Functions
_newBuilder()
_newBuilder<
T
>(data
,options
):Builder
<T
>
Type parameters
Type parameter |
---|
T |
Parameters
Parameter | Type |
---|---|
data | WritableData <any > |
options | BuilderOptions |
Returns
Builder
<T
>
Source
data-mate/src/builder/utils.ts:40
getBuildersForConfig()
getBuildersForConfig<
T
>(config
,size
):Map
<keyofT
,Builder
<unknown
>>
Type parameters
Type parameter | Value |
---|---|
T extends Record <string , any > | Record <string , unknown > |
Parameters
Parameter | Type |
---|---|
config | DataTypeConfig |
size | number |
Returns
Map
<keyof T
, Builder
<unknown
>>