[T] ExtensionDecorator
type ExtensionDecorator = (context, target, key, value) => void;
Attach some custom data to the OpenAPI element generated from this type.
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
context | DecoratorContext | - |
target | Type | - |
key | string | Extension key. |
value | unknown | Extension value. |
Returns
Section titled “Returns”void
Example
Section titled “Example”@extension("x-custom", "My value")@extension("x-pageable", #{nextLink: "x-next-link"})op read(): string;