UNPKG

@loopback/docs

Version:

Documentation files rendered at [https://loopback.io](https://loopback.io)

37 lines (24 loc) 1.16 kB
--- lang: en title: 'API docs: metadata.decoratorfactory.decorate' keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI sidebar: lb4_sidebar editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/metadata permalink: /doc/en/lb4/apidocs.metadata.decoratorfactory.decorate.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/metadata](./metadata.md) &gt; [DecoratorFactory](./metadata.decoratorfactory.md) &gt; [decorate](./metadata.decoratorfactory.decorate.md) ## DecoratorFactory.decorate() method Base implementation of the decorator function <b>Signature:</b> ```typescript protected decorate(target: Object, member?: string | symbol, descriptorOrIndex?: TypedPropertyDescriptor<any> | number): void; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | target | Object | Decorator target | | member | string \| symbol | Optional property or method | | descriptorOrIndex | TypedPropertyDescriptor&lt;any&gt; \| number | Optional method descriptor or parameter index | <b>Returns:</b> void