featurehub-javascript-client-sdk
Version:
FeatureHub client/browser SDK
20 lines (14 loc) • 752 B
text/typescript
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 {
// called when it is ready, but has changed important state (e.g. server eval and the client
// change the context
notReady(): void;
notify(state: SSEResultState, data: any);
valueInterceptorMatched(key: string): InterceptorValueMatch | undefined;
apply(strategies: Array<FeatureRolloutStrategy>, key: string, featureValueId: string,
context: ClientContext): Applied;
}