Skip to main content
Version: Latest (0.60.x)

[T] ExternalDocsDecorator

type ExternalDocsDecorator: (context, target, url, description?) => void;

Specify the OpenAPI externalDocs property for this type.

Parameters

ParameterTypeDescription
contextDecoratorContext-
targetType-
urlstringUrl to the docs
description?stringDescription of the docs

Returns

void

Example

@externalDocs("https://example.com/detailed.md", "Detailed information on how to use this operation")
op listPets(): Pet[];