Home > @microsoft/api-extractor-model > Parameter
Parameter class
Represents a named parameter for a function-like declaration.
Signature:
export declare class Parameter
Remarks
Parameter represents a TypeScript declaration such as x: number in this example:
export function add(x: number, y: number): number {
return x + y;
}
Parameter objects belong to the ApiParameterListMixin.parameters collection.
Constructors
Constructor | Modifiers | Description |
|---|---|---|
Constructs a new instance of the |
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
boolean | Whether the parameter is optional. | ||
string | The parameter name. | ||
| An Excerpt that describes the type of the parameter. | ||
| tsdoc.DocParamBlock | undefined | Returns the |