UNPKG

@boxyhq/react-ui

Version:

React UI components from BoxyHQ

10 lines (9 loc) 295 B
/** undefined for 204 No content */ type ApiSuccess<T> = T | undefined; export type ApiResponse<T = any> = ApiSuccess<T> | { error: { message: string; }; }; export declare function sendHTTPRequest<U = any>(url: string, options?: RequestInit): Promise<ApiResponse<U>>; export {};