Skip to content

Instantly share code, notes, and snippets.

@voyager5874
voyager5874 / Fetcher.ts
Last active May 5, 2025 12:04
auth.js workaround
interface FetcherError extends Error {
response?: Response;
path?: string;
data?: any;
status?: number;
statusText?: Response['statusText'];
digest?: string;
}
export const isFetcherError = (error: unknown): error is FetcherError =>