UNPKG

@loopback/docs

Version:

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

37 lines (24 loc) 1.42 kB
--- lang: en title: 'API docs: metadata.metadatainspector.getallmethodmetadata' 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.metadatainspector.getallmethodmetadata.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/metadata](./metadata.md) &gt; [MetadataInspector](./metadata.metadatainspector.md) &gt; [getAllMethodMetadata](./metadata.metadatainspector.getallmethodmetadata.md) ## MetadataInspector.getAllMethodMetadata() method Get the metadata associated with the given key for all methods of the target class or prototype <b>Signature:</b> ```typescript static getAllMethodMetadata<T>(key: MetadataKey<T, MethodDecorator>, target: Object, options?: InspectionOptions): MetadataMap<T> | undefined; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | key | [MetadataKey](./metadata.metadatakey.md)<!-- -->&lt;T, MethodDecorator&gt; | Metadata key | | target | Object | Class for static methods or prototype for instance methods | | options | [InspectionOptions](./metadata.inspectionoptions.md) | Options for inspection | <b>Returns:</b> [MetadataMap](./metadata.metadatamap.md)<!-- -->&lt;T&gt; \| undefined