toggleServiceCapability

Function

Toggles a single capability on a given feature service. Returns a service definition object with updated capabilities

  • toggleServiceCapability(capability: ServiceCapabilities, serviceDefinition: Partial<IFeatureServiceDefinition>) : Partial<IFeatureServiceDefinition>

Parameters

Parameter Type Default Notes
capability Required ServiceCapabilities

capability to toggle

serviceDefinition Required Partial<IFeatureServiceDefinition>

current definition of the service

Returns

updated definition

Partial<IFeatureServiceDefinition>

Function defined in common/src/content/hostedServiceUtils.ts:109