Skip to content

@sourceloop/feature-toggle / Exports / FeatureFlagActionProvider

Class: FeatureFlagActionProvider

Implements

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new FeatureFlagActionProvider(getMetadata, user?, handlerService?)

Parameters

Name Type
getMetadata Getter<FeatureFlagMetadata>
user? IAuthUserWithDisabledFeat
handlerService? FeatureHandlerService

Defined in

packages/feature-toggle/src/providers/feature-flag-action.provider.ts:36

Properties

filterStrategyMapping

filterStrategyMapping: { filterType: FilterType ; strategy: FilterStrategy }[]

Defined in

packages/feature-toggle/src/providers/feature-flag-action.provider.ts:23


getMetadata

Private Readonly getMetadata: Getter<FeatureFlagMetadata>

Defined in

packages/feature-toggle/src/providers/feature-flag-action.provider.ts:38


handlerService

Private Optional Readonly handlerService: FeatureHandlerService

Defined in

packages/feature-toggle/src/providers/feature-flag-action.provider.ts:42


user

Private Optional Readonly user: IAuthUserWithDisabledFeat

Defined in

packages/feature-toggle/src/providers/feature-flag-action.provider.ts:40

Methods

action

action(): Promise<boolean>

Returns

Promise<boolean>

Defined in

packages/feature-toggle/src/providers/feature-flag-action.provider.ts:48


getStrategy

getStrategy(operator): FilterStrategy

Parameters

Name Type
operator undefined | FilterType

Returns

FilterStrategy

Defined in

packages/feature-toggle/src/providers/feature-flag-action.provider.ts:94


value

value(): FeatureFlagFn

Returns

FeatureFlagFn

Implementation of

Provider.value

Defined in

packages/feature-toggle/src/providers/feature-flag-action.provider.ts:44