UNPKG

@duffel/components

Version:

Component library to build your travel product with Duffel.

9 lines (8 loc) 324 B
export interface ErrorResponse extends Response { data: { meta: any; errors: any[]; }; } export declare const isErrorResponse: (response: any) => response is ErrorResponse; export declare function fetchFromDuffelAPI(withClientKey: string, path: string, method?: string, body?: string): Promise<any>;