UNPKG

featurehub-repository

Version:

Core package of API that exposes FeatureHub feature flags, values and configuration to client applications written in Typescript or Javascript.

12 lines (11 loc) 619 B
import { FeatureHubRepository } from './client_feature_repository'; import { RolloutStrategy, SSEResultState } from './models/models'; import { InterceptorValueMatch } from './interceptors'; import { ClientContext } from './client_context'; import { Applied } from './strategy_matcher'; export interface InternalFeatureRepository extends FeatureHubRepository { notReady(): void; notify(state: SSEResultState, data: any): void; valueInterceptorMatched(key: string): InterceptorValueMatch; apply(strategies: Array<RolloutStrategy>, key: string, featureValueId: string, context: ClientContext): Applied; }