Skip to main content

ts-transforms / operations/lib/transforms/trim / default

Class: default

Defined in: operations/lib/transforms/trim.ts:5

Extends

Constructors

new default()

new default(config): default

Defined in: operations/lib/transforms/trim.ts:6

Parameters

ParameterType
configPostProcessConfig

Returns

default

Overrides

default.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
configreadonlyOperationConfigundefineddefault.configoperations/lib/base.ts:9
destinationprotectedstring | string[]undefineddefault.destinationoperations/lib/base.ts:10
hasTargetprotectedbooleanundefineddefault.hasTargetoperations/lib/base.ts:11
sourceprotectedstring | string[]undefineddefault.sourceoperations/lib/base.ts:7
targetprotectedstring | string[]undefineddefault.targetoperations/lib/base.ts:8
cardinalitystaticInputOutputCardinality'one-to-one'default.cardinalityoperations/lib/base.ts:13

Methods

execute()

protected execute(doc, fn): null | DataEntity<Record<string, any>, _DataEntityMetadata<Record<string, any>>>

Defined in: operations/lib/transforms/base.ts:5

Parameters

ParameterType
docDataEntity
fn(value) => any

Returns

null | DataEntity<Record<string, any>, _DataEntityMetadata<Record<string, any>>>

Inherited from

default.execute


removeField()

removeField(doc, field): void

Defined in: operations/lib/base.ts:50

Parameters

ParameterType
docDataEntity
fieldstring

Returns

void

Inherited from

default.removeField


removeSource()

removeSource(doc): void

Defined in: operations/lib/base.ts:46

Parameters

ParameterType
docDataEntity

Returns

void

Inherited from

default.removeSource


run()

run(doc): null | DataEntity<Record<string, any>, _DataEntityMetadata<Record<string, any>>>

Defined in: operations/lib/transforms/trim.ts:10

Parameters

ParameterType
docDataEntity

Returns

null | DataEntity<Record<string, any>, _DataEntityMetadata<Record<string, any>>>

Overrides

default.run


set()

set(doc, data): void

Defined in: operations/lib/base.ts:38

Parameters

ParameterType
docDataEntity
dataany

Returns

void

Inherited from

default.set


setField()

setField(doc, field, data): void

Defined in: operations/lib/base.ts:42

Parameters

ParameterType
docDataEntity
fieldstring
dataany

Returns

void

Inherited from

default.setField


validateConfig()

protected validateConfig(config): void

Defined in: operations/lib/base.ts:22

Parameters

ParameterType
configOperationConfig

Returns

void

Inherited from

default.validateConfig