@ericbutera/kaleido 0.8.0 → 0.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/lib/apiHelpers.d.ts
CHANGED
|
@@ -5,8 +5,15 @@ export type ApiError = {
|
|
|
5
5
|
message?: string;
|
|
6
6
|
errors?: Record<string, string[]>;
|
|
7
7
|
};
|
|
8
|
+
export type KaleidoQueryClientOptions = {
|
|
9
|
+
queryErrorToastThrottleMs?: number;
|
|
10
|
+
suppressQueryErrorToast?: (error: unknown) => boolean;
|
|
11
|
+
toast?: {
|
|
12
|
+
error: (message: string) => void;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
8
15
|
export declare function handleApiError(err: any): ApiError;
|
|
9
|
-
export declare function newQueryClient(): QueryClient;
|
|
16
|
+
export declare function newQueryClient(options?: KaleidoQueryClientOptions): QueryClient;
|
|
10
17
|
export declare const fetchWithCredentials: (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
|
|
11
18
|
export declare function createFetchClient(opts: {
|
|
12
19
|
baseUrl: string;
|