Skip to content

[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.