@rustedcompiler/frappe-hooks
Version:
Reusable HTTP hooks for React and Frappe
26 lines • 834 B
TypeScript
import { IFrappeInstance } from './types';
export * from "./lib/provider/FrappeProvider";
export * from "./hooks/useDocuments";
export * from "./hooks/useDocument";
export * from "./hooks/useAuth";
export declare class FrappeClient {
private tokenProvided;
private baseUrl;
private static instance;
private initialized;
private updatedTimeStamp;
private static options;
constructor(options: IFrappeInstance);
static getInstance(options?: IFrappeInstance): FrappeClient;
getBaseUrl(): string | null;
getInitialized(): boolean;
setUpdated(): void;
getUpdated(): number;
}
export declare function getInstanceManager(): FrappeClient;
export declare function getUtils(): {
initialized: number;
setUpdate: () => void;
baseUrl: string | null;
};
//# sourceMappingURL=index.d.ts.map