@borda/client
Advanced tools
Comparing version 0.0.8 to 0.0.9
{ | ||
"name": "@borda/client", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"files": [ | ||
@@ -5,0 +5,0 @@ "packages", |
@@ -8,3 +8,8 @@ import { Document } from './types'; | ||
}; | ||
export declare function fetcher<T = Document>(url: string, options?: { | ||
export interface FetchError { | ||
data: string; | ||
status: number; | ||
[key: string]: unknown; | ||
} | ||
export declare function fetcher<T = Document, E = FetchError>(url: string, options?: { | ||
method?: HttpMethod; | ||
@@ -14,2 +19,3 @@ body?: Document | null; | ||
direct?: boolean; | ||
transform?: (response: unknown) => E; | ||
}): Promise<FetchResponse<T>>; |
Sorry, the diff of this file is too big to display
157777
4009