Skip to content

[T] ExtensionDecorator

type ExtensionDecorator = (context, target, key, value) => void;

Attach some custom data to the OpenAPI element generated from this type.

ParameterTypeDescription
contextDecoratorContext-
targetType-
keystringExtension key.
valueunknownExtension value.

void

@extension("x-custom", "My value")
@extension("x-pageable", #{nextLink: "x-next-link"})
op read(): string;