@magicbell/core
Version:
Official MagicBell API wrapper
17 lines (16 loc) • 413 B
TypeScript
import IRemoteConfig from './IRemoteConfig.js';
/**
* Class to interact with the config API endpoint.
*
* @example
* const repo = new ConfigRepository();
* const config = await repo.get();
*/
export default class ConfigRepository {
remotePathOrUrl: string;
constructor(remotePathOrUrl?: string);
/**
* Get the configuration from the API server.
*/
get(): Promise<IRemoteConfig>;
}