Skip to main content

VersionServiceParameters

@webda/runtime


Class: VersionServiceParameters

Defined in: packages/runtime/src/services/version.service.ts:6

Version parameters

Extends​

  • ServiceParameters

Constructors​

Constructor​

new VersionServiceParameters(): VersionServiceParameters

Returns​

VersionServiceParameters

Inherited from​

ServiceParameters.constructor

Properties​

type​

type: string

Defined in: packages/core/lib/services/serviceparameters.d.ts:8

Type of the service

Inherited from​

ServiceParameters.type


url?​

optional url?: string

Defined in: packages/runtime/src/services/version.service.ts:14

Default​

/version

version?​

optional version?: string

Defined in: packages/runtime/src/services/version.service.ts:10

To force version otherwise would read from package.json

Methods​

load()​

load(params?): this

Defined in: packages/core/lib/services/serviceparameters.d.ts:18

Load raw parameters by assigning them onto this instance

Parameters​

params?​

any

the service parameters

Returns​

this

this for chaining

Inherited from​

ServiceParameters.load


update()​

update(params, delta): this

Defined in: packages/core/lib/services/serviceparameters.d.ts:25

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

Inherited from​

ServiceParameters.update


with()​

with(callback): this

Defined in: packages/core/lib/services/serviceparameters.d.ts:31

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

Inherited from​

ServiceParameters.with