Page Contents

Home > @loopback/metadata > MetadataInspector > getDesignTypeForMethod

MetadataInspector.getDesignTypeForMethod() method

Get TypeScript design time type for a method

Signature:

static getDesignTypeForMethod(target: Object, methodName: string): DesignTimeMethodMetadata;

Parameters

Parameter Type Description
target Object Class or prototype
methodName string Method name

Returns:

DesignTimeMethodMetadata