@gala-chain/api ∙ API
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
Source