Skip to main content
Version: Latest (Core: 0.57.x, Azure: 0.43.x)

[F] $singleton

function $singleton(
context,
resourceType,
keyValue): void

This decorator is used to mark a resource type as a "singleton", a type with only one instance. The standard set of resource operations can be applied to such a resource type, they will generate the correct routes and parameter lists.

Parameters​

ParameterTypeDefault value
contextDecoratorContextundefined
resourceTypeModelundefined
keyValuestring"default"

Returns​

void