Method
state
(
def: FlagDefinitionInput,
enabled: boolean,
source: ExperimentalFeatureState['source'],
configValue: boolean | undefined,
)
Source from the content-addressed store, hash-verified
| 72 | } |
| 73 | |
| 74 | private state( |
| 75 | def: FlagDefinitionInput, |
| 76 | enabled: boolean, |
| 77 | source: ExperimentalFeatureState['source'], |
| 78 | configValue: boolean | undefined, |
| 79 | ): ExperimentalFeatureState { |
| 80 | return { |
| 81 | id: def.id as FlagId, |
| 82 | title: def.title, |
| 83 | description: def.description, |
| 84 | surface: def.surface, |
| 85 | env: def.env, |
| 86 | defaultEnabled: def.default, |
| 87 | enabled, |
| 88 | source, |
| 89 | configValue, |
| 90 | }; |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | /** |
Tested by
no test coverage detected