growthbook
Version:
The GrowthBook command-line interface (CLI) for working with the GrowthBook A/B testing, feature flagging, and experimentation platform
19 lines (18 loc) • 753 B
TypeScript
export type SimplifiedFeature = {
id: string;
valueType: string;
};
/**
* Maps a GrowthBook value type to a TypeScript type
* @param valueType GrowthBook value type
* @return {string} TypeScript type
*/
export declare const getFeatureValueTypeToTypeScriptMapping: (valueType: string) => string;
/**
* Fetches all the features from the GrowthBook REST API for the provided API base URL.
* @param apiBaseUrl The API base URL for the target GrowthBook instance
* @param token Secret token
* @param projectId Optional project ID filter
* @return {Promise<SimplifiedFeature[]>} A list of features
*/
export declare const fetchAllPaginatedFeatures: (apiBaseUrl: string, token: string, projectId?: string) => Promise<SimplifiedFeature[]>;