Skip to main content
API module

services API

All 7 public APIs exported from the services module, with declarations, documentation, and source-backed examples.

Generated from typings/index.d.ts @ 555f5ceon

services

services.getService

Get service by id.

Source

API signature

services.getService(id: string): IServiceProvider

Parameters

ParameterType
idstring
Declaration
typings/index.d.ts:8958
services

services.stop

Stop service by id.

Source

API signature

services.stop(id: string): Promise<void>

Parameters

ParameterType
idstring
Returns
Promise<void>
Declaration
typings/index.d.ts:8962
services

services.toggle

Stop running service or start stopped service.

Source

API signature

services.toggle(id: string): Promise<void>

Parameters

ParameterType
idstring
Returns
Promise<void>
Declaration
typings/index.d.ts:8966