UNPKG

@loopback/docs

Version:

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

48 lines (31 loc) 1.16 kB
--- lang: en title: 'API docs: core.extensionpoint' keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI sidebar: lb4_sidebar editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/core permalink: /doc/en/lb4/apidocs.core.extensionpoint.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/core](./core.md) &gt; [extensionPoint](./core.extensionpoint.md) ## extensionPoint() function Decorate a class as a named extension point. If the decoration is not present, the name of the class will be used. <b>Signature:</b> ```typescript export declare function extensionPoint(name: string, ...specs: BindingSpec[]): ClassDecorator; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | name | string | Name of the extension point | | specs | [BindingSpec](./context.bindingspec.md)<!-- -->\[\] | | <b>Returns:</b> ClassDecorator ## Example ```ts import {extensionPoint} from '@loopback/core'; @extensionPoint(GREETER_EXTENSION_POINT_NAME) export class GreetingService { // ... } ```