Skip to content

[F] $armResourceOperations

function $armResourceOperations(
context,
target,
_?): void

This decorator is used to identify interfaces containing resource operations. When applied, it marks the interface with the @autoRoute decorator so that all of its contained operations will have their routes generated automatically.

It also adds a @tag decorator bearing the name of the interface so that all of the operations will be grouped based on the interface name in generated clients.

Parameters

ParameterType
contextDecoratorContext
targetInterface
_?Type

Returns

void