UNPKG

unleash-server

Version:

Unleash is an enterprise ready feature toggles service. It provides different strategies for handling feature toggles.

17 lines (16 loc) 645 B
import { ClientFeaturesResponse, FeatureInterface } from '../feature'; import { Segment } from '../strategy/strategy'; export interface BootstrapProvider { readBootstrap(): Promise<ClientFeaturesResponse | undefined>; } export interface BootstrapOptions { data: FeatureInterface[]; segments?: Segment[]; } export declare class DefaultBootstrapProvider implements BootstrapProvider { private data?; private segments?; constructor(options: BootstrapOptions); readBootstrap(): Promise<ClientFeaturesResponse | undefined>; } export declare function resolveBootstrapProvider(options: BootstrapOptions): BootstrapProvider;