[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​
Parameter | Type | Default value |
---|---|---|
context | DecoratorContext | undefined |
resourceType | Model | undefined |
keyValue | string | "default" |
Returns​
void