toggleServiceCapability
Toggles a single capability on a given feature service. Returns a service definition object with updated capabilities
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