Skip to main content

FeatureFlagsServiceParameters

@webda/core


Class: FeatureFlagsServiceParameters

Defined in: packages/core/src/services/featureflags.service.ts:32

Parameters for the FeatureFlagsService

Extends​

Constructors​

Constructor​

new FeatureFlagsServiceParameters(): FeatureFlagsServiceParameters

Returns​

FeatureFlagsServiceParameters

Inherited from​

ServiceParameters.constructor

Properties​

defaultValue​

defaultValue: boolean

Defined in: packages/core/src/services/featureflags.service.ts:50

Value of an unknown flag

Default​

false

flags​

flags: object

Defined in: packages/core/src/services/featureflags.service.ts:37

Flags definitions

Index Signature​

[name: string]: boolean | FeatureFlagRule

Default​

{}

operations​

operations: object

Defined in: packages/core/src/services/featureflags.service.ts:45

Attach flags to operations by id or pattern (same syntax as transports operations: *, Service.*, exact id), in addition to the ones declared in code. e.g. { "Posts.Delete": "safe-delete", "Admin.*": "admin-v2" }

Index Signature​

[pattern: string]: string

Default​

{}

type​

type: string

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

Type of the service

Inherited from​

ServiceParameters.type

Methods​

load()​

load(params): this

Defined in: packages/core/src/services/featureflags.service.ts:57

Load parameters

Parameters​

params​

any

raw parameters

Returns​

this

this

Overrides​

ServiceParameters.load


update()​

update(params?, delta): this

Defined in: packages/core/src/application/parameters.ts:33

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/src/application/parameters.ts:63

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