statsig-js
Version:
Statsig JavaScript client SDK for single user environments.
12 lines (11 loc) • 460 B
TypeScript
export declare type AsyncStorage = {
getItem(key: string): Promise<string | null>;
setItem(key: string, value: string): Promise<void>;
removeItem(key: string): Promise<void>;
};
export default class StatsigAsyncStorage {
static asyncStorage: AsyncStorage;
static getItemAsync(key: string): Promise<string | null>;
static setItemAsync(key: string, value: string): Promise<void>;
static removeItemAsync(key: string): Promise<void>;
}