Page Contents

Home > @loopback/authorization > AuthorizeMethodDecoratorFactory > mergeWithOwn

AuthorizeMethodDecoratorFactory.mergeWithOwn() method

Signature:

protected mergeWithOwn(ownMetadata: MetadataMap<AuthorizationMetadata>, target: Object, methodName?: string, methodDescriptor?: TypedPropertyDescriptor<any> | number): MetadataMap<AuthorizationMetadata>;

Parameters

Parameter Type Description
ownMetadata MetadataMap<AuthorizationMetadata>  
target Object  
methodName string (Optional)
methodDescriptor TypedPropertyDescriptor<any> | number (Optional)

Returns:

MetadataMap<AuthorizationMetadata>