Skip to main content

ServiceParameters

@webda/core


Class: ServiceParameters

Defined in: packages/core/src/services/serviceparameters.ts:6

Interface to specify the Service parameters

Extended by​

Constructors​

Constructor​

new ServiceParameters(): ServiceParameters

Returns​

ServiceParameters

Properties​

type​

type: string

Defined in: packages/core/src/services/serviceparameters.ts:10

Type of the service

Methods​

load()​

load(params?): this

Defined in: packages/core/src/services/serviceparameters.ts:24

Load raw parameters by assigning them onto this instance

Parameters​

params?​

any = {}

the service parameters

Returns​

this

this for chaining


update()​

update(params?, delta): this

Defined in: packages/core/src/services/serviceparameters.ts:35

Update parameters and call watchers if a parameter was changed

Parameters​

params?​

any = {}

the service parameters

delta​

any

the delta

Returns​

this

this for chaining


with()​

with(callback): this

Defined in: packages/core/src/services/serviceparameters.ts:65

Watch for changes on the parameters and call watchers when a parameter is changed

Parameters​

callback​

(params) => void

the callback function

Returns​

this

this for chaining