@sourceloop/feature-toggle / Exports
@sourceloop/feature-toggle¶
Table of contents¶
Namespaces¶
Classes¶
Interfaces¶
Type Aliases¶
Variables¶
Functions¶
Type Aliases¶
FeatureFlagFn¶
Ƭ FeatureFlagFn: () => Promise
<boolean
>
Type declaration¶
▸ (): Promise
<boolean
>
Returns¶
Promise
<boolean
>
Defined in¶
packages/feature-toggle/src/types.ts:20
FeatureFlagOptions¶
Ƭ FeatureFlagOptions: Object
Index signature¶
▪ [property: string
]: any
Type declaration¶
Name | Type |
---|---|
handler? |
string |
operator? |
"AND" | "OR" |
Defined in¶
packages/feature-toggle/src/types.ts:11
FeatureInterface¶
Ƭ FeatureInterface: () => Promise
<boolean
>
Type declaration¶
▸ (): Promise
<boolean
>
Returns¶
Promise
<boolean
>
Defined in¶
packages/feature-toggle/src/types.ts:18
FilterType¶
Ƭ FilterType: "AND"
| "OR"
Defined in¶
packages/feature-toggle/src/types.ts:58
Variables¶
FEATURE_FLAG_METADATA_ACCESSOR¶
• Const
FEATURE_FLAG_METADATA_ACCESSOR: MetadataAccessor
<FeatureFlagMetadata
, MethodDecorator
>
Defined in¶
packages/feature-toggle/src/keys.ts:8
HANDLER_EXTENSION_POINT_NAME¶
• Const
HANDLER_EXTENSION_POINT_NAME: "handlers"
Name/id of the handler extension point
Defined in¶
packages/feature-toggle/src/types.ts:44
Functions¶
asFeatureHandler¶
▸ asFeatureHandler(binding
): void
A binding template for handler extensions
Parameters¶
Name | Type |
---|---|
binding |
Binding <unknown > |
Returns¶
void
Defined in¶
node_modules/@loopback/context/dist/binding.d.ts:202
featureFlag¶
▸ featureFlag(metadata
): MethodDecorator
Parameters¶
Name | Type |
---|---|
metadata |
FeatureFlagMetadata |
Returns¶
MethodDecorator
Defined in¶
packages/feature-toggle/src/decorators/feature-flag.decorator.ts:9
getFeatureFlagMetadata¶
▸ getFeatureFlagMetadata(controllerClass
, methodName
): FeatureFlagMetadata
| undefined
Parameters¶
Name | Type |
---|---|
controllerClass |
Constructor <{}> |
methodName |
string |
Returns¶
FeatureFlagMetadata
| undefined
Defined in¶
packages/feature-toggle/src/providers/feature-flag-metadata.provider.ts:30