@usebool/sdk-js
Version:
Core JS SDK for Bool feature flag system
19 lines (18 loc) • 448 B
TypeScript
export declare type FeatureFlag = {
applicationId: string;
id: string;
key: string;
name: string;
value: boolean;
description?: string;
};
export declare type FeatureFlagList = {
Bool_FeatureFlag: FeatureFlag[];
};
export declare type ClientConfig = {
idToken: string;
};
export declare type BoolClient = {
hasFeature: (featureName: string) => Promise<boolean>;
getFeatures: () => Promise<FeatureFlag[]>;
};