Page Contents
Home > @loopback/metadata > DecoratorFactory > getNumberOfParameters
DecoratorFactory.getNumberOfParameters() method
Get the number of parameters for a given constructor or method
Signature:
static getNumberOfParameters(target: Object, member?: string): number;
Parameters
Parameter | Type | Description |
---|---|---|
target | Object | Class or the prototype |
member | string | (Optional) Method name |
Returns:
number