Page Contents

Home > @loopback/metadata > MetadataInspector > getDesignTypeForProperty

MetadataInspector.getDesignTypeForProperty() method

Get TypeScript design time type for a property

Signature:

static getDesignTypeForProperty(target: Object, propertyName: string): Function;

Parameters

Parameter Type Description
target Object Class or prototype
propertyName string Property name

Returns:

Function