Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
22 lines
592 B
Plaintext
22 lines
592 B
Plaintext
export interface IVariant {
|
|
name: string;
|
|
enabled: boolean;
|
|
feature_enabled?: boolean;
|
|
payload?: {
|
|
type: string;
|
|
value: string;
|
|
};
|
|
}
|
|
export interface UnleashClient {
|
|
isEnabled(this: UnleashClient, featureName: string): boolean;
|
|
getVariant(this: UnleashClient, featureName: string): IVariant;
|
|
}
|
|
export interface IConfig {
|
|
[key: string]: unknown;
|
|
appName: string;
|
|
clientKey: string;
|
|
url: URL | string;
|
|
}
|
|
export type UnleashClientClass = new (config: IConfig) => UnleashClient;
|
|
//# sourceMappingURL=types.d.ts.map
|