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:

ParameterTypeDescription
typeAnnotationType<T>The annotation type.

Returns: T | undefinedThe annotation value, or undefined.