Transaction.annotation method
Transaction › annotation
Official
Get the value of the given annotation type, if any.Signature:
annotation(type: AnnotationType<T>): T | undefinedParameters:
| Parameter | Type | Description |
|---|---|---|
| type | AnnotationType<T> | The annotation type. |
Returns: T | undefined — The annotation value, or undefined.