@magicbell/react-headless
Version:
Hooks to build a notification inbox
17 lines (16 loc) • 423 B
TypeScript
import IRemoteConfig from '../../types/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>;
}