react-runtime-config
Version:
Provide a typesafe runtime configuration inside a react app
16 lines • 598 B
TypeScript
import { InjectedProps, Config } from "./types";
export declare function createUseAdminConfig<TSchema extends Record<string, Config>, TNamespace extends string>(props: InjectedProps<TSchema, TNamespace>): () => {
/**
* List of all config values
*/
fields: (keyof TSchema extends keyof TSchema ? { [key in keyof TSchema]: import("./types").AdminField<TSchema, key>; }[keyof TSchema] : never)[];
/**
* Reset the store
*/
reset: () => void;
/**
* Namespace
*/
namespace: string;
};
//# sourceMappingURL=createUseAdminConfig.d.ts.map