UNPKG

featurehub-javascript-client-sdk

Version:
12 lines (11 loc) 633 B
import { FeatureHubRepository } from './featurehub_repository'; import { FeatureRolloutStrategy, SSEResultState } from './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): any; valueInterceptorMatched(key: string): InterceptorValueMatch | undefined; apply(strategies: Array<FeatureRolloutStrategy>, key: string, featureValueId: string, context: ClientContext): Applied; }