UNPKG

@plutoxyz/frame-js

Version:
10 lines (9 loc) 289 B
interface FetchOptions extends RequestInit { errorCode?: string; displayMessage?: string; responseType?: "json" | "text" | "none"; } export declare const fetchWithErrorHandling: <T>(url: string, options?: FetchOptions) => Promise<T | { success: true; } | null>; export {};