UNPKG

growthbook

Version:

The GrowthBook command-line interface (CLI) for working with the GrowthBook A/B testing, feature flagging, and experimentation platform

41 lines (40 loc) 943 B
import { Configuration } from '../generated/api'; import { BaseAPI } from '../generated/api/base'; /** * Base options that all repositories need */ export type BaseOptions = { apiBaseUrl: string; apiKey: string; apiVersion?: string; }; /** * All repositories should have this property */ export type IBaseRepository = { apiBaseUrl: string; apiKey: string; }; /** * This is the interface that all repositories should implement */ export type BaseApiRepository<T extends BaseAPI> = IBaseRepository & { api(): T; }; /** * This is the class that all repositories should extend */ export declare class BaseRepository implements IBaseRepository { apiBaseUrl: string; apiKey: string; constructor(options: BaseOptions); apiConfig(): Configuration; } export type Pagination = { limit: number; offset: number; count: number; total: number; hasMore: boolean; nextOffset: number; };