Skip to content

@gala-chain/apiAPI


API > ApplyConstructor

Function: ApplyConstructor()

ApplyConstructor\<ClassInstance, ConstructorSignature, SerializedType>(Constructor, fromTransformer, toTransformer): () => (target, propertyKey) => void

Type parameters

ClassInstance

ConstructorSignature

SerializedType

Parameters

Constructor: ClassConstructor\<ConstructorSignature>

fromTransformer: (propertyValue) => ClassInstance

toTransformer: (classInstance) => SerializedType

Returns

(): (target, propertyKey) => void

Returns

(target, propertyKey): void

Parameters

target: Object

propertyKey: string | symbol

Source

chain-api/src/validators/transform-decorators.ts:43

Source

chain-api/src/validators/transform-decorators.ts:31

Source

chain-api/src/validators/transform-decorators.ts:26