Skip to main content
Version: Next 🚧

[F] $summary

function $summary(
context,
target,
summary): void

Parameters

ParameterType
contextDecoratorContext
targetType
summarystring

Returns

void

Summary

attaches a documentation string. It is typically used to give a short, single-line description, and can be used in combination with or instead of @doc.

The first argument to

Summary

is a string, which may contain template parameters, enclosed in braces, which are replaced with an attribute for the type (commonly "name") passed as the second (optional) argument.

Summary

can be specified on any language element -- a model, an operation, a namespace, etc.