ts-transforms / operations/lib/validations/string / default
Class: default
Extends
default
<any
>
Constructors
new default()
new default(
config
):default
Parameters
Parameter | Type |
---|---|
config | PostProcessConfig |
Returns
Overrides
Source
operations/lib/validations/string.ts:10
Properties
config
readonly
config:OperationConfig
Inherited from
Source
destination
protected
destination:string
|string
[]
Inherited from
Source
hasTarget
protected
hasTarget:boolean
Inherited from
Source
source
protected
source:string
|string
[]
Inherited from
Source
target
protected
target:string
|string
[]
Inherited from
Source
cardinality
static
cardinality:InputOutputCardinality
='one-to-one'
Inherited from
Source
Methods
normalize()
normalize(
field
):any
Parameters
Parameter | Type |
---|---|
field | any |
Returns
any
Overrides
Source
operations/lib/validations/string.ts:15
removeField()
removeField(
doc
,field
):void
Parameters
Parameter | Type |
---|---|
doc | DataEntity <Record <string , any >, _DataEntityMetadata <Record <string , any >>> |
field | string |
Returns
void
Inherited from
Source
removeSource()
removeSource(
doc
):void
Parameters
Parameter | Type |
---|---|
doc | DataEntity <Record <string , any >, _DataEntityMetadata <Record <string , any >>> |
Returns
void
Inherited from
Source
run()
run(
doc
):null
|DataEntity
<Record
<string
,any
>,_DataEntityMetadata
<Record
<string
,any
>>>
Parameters
Parameter | Type |
---|---|
doc | DataEntity <Record <string , any >, _DataEntityMetadata <Record <string , any >>> |
Returns
null
| DataEntity
<Record
<string
, any
>, _DataEntityMetadata
<Record
<string
, any
>>>
Inherited from
Source
operations/lib/validations/base.ts:18
set()
set(
doc
,data
):void
Parameters
Parameter | Type |
---|---|
doc | DataEntity <Record <string , any >, _DataEntityMetadata <Record <string , any >>> |
data | any |
Returns
void
Inherited from
Source
setField()
setField(
doc
,field
,data
):void
Parameters
Parameter | Type |
---|---|
doc | DataEntity <Record <string , any >, _DataEntityMetadata <Record <string , any >>> |
field | string |
data | any |
Returns
void
Inherited from
Source
validate()
validate(
data
):boolean
Parameters
Parameter | Type |
---|---|
data | string |
Returns
boolean
Overrides
Source
operations/lib/validations/string.ts:36
validateConfig()
protected
validateConfig(config
):void
Parameters
Parameter | Type |
---|---|
config | OperationConfig |
Returns
void