UNPKG

togglit-sdk

Version:

ToggLit SDK makes it easy to fetch dynamic JSON config files from your ToggLit project environments using just a project ID and API key. Ideal for feature toggles, remote settings, A/B testing, and more — without redeploying code.

9 lines (8 loc) 287 B
export interface GetConfigOptions { projectId: string; env: string; apiKey: string; version?: number; fallback?: Record<string, any>; } export declare function getConfig({ projectId, env, apiKey, version, fallback, }: GetConfigOptions): Promise<Record<string, any>>;