MCPcopy
hub / github.com/FoalTS/foal / ApiDefineCallback

Function ApiDefineCallback

packages/core/src/core/openapi/decorators.ts:155–159  ·  view source on GitHub ↗
(
  key: string, callback: IApiCallback | IApiReference | ((controller: any) => IApiCallback | IApiReference)
)

Source from the content-addressed store, hash-verified

153}
154
155export function ApiDefineCallback(
156 key: string, callback: IApiCallback | IApiReference | ((controller: any) => IApiCallback | IApiReference)
157): OpenApiDecorator {
158 return AddMetadataProperty('api:components:callbacks', key, callback);
159}

Callers 8

ApiController2Class · 0.90
ApiControllerClass · 0.90
SubControllerClass · 0.90
SubSubControllerClass · 0.90
UserControllerClass · 0.90
AppControllerClass · 0.90
ControllerClass · 0.90
ControllerClass · 0.90

Calls 1

AddMetadataPropertyFunction · 0.85

Tested by

no test coverage detected