Skip to content

Transaction.annotation method

Transaction › annotation

Official

Get the value of the given annotation type, if any.

Signature:

annotation(type: AnnotationType<T>): T | undefined

Parameters:

Parameter Type Description
type AnnotationType<T> The annotation type.

Returns: T | undefinedThe annotation value, or undefined.