/** * Request-related types */ export type Headers = Record // Minimal class to allow interop between different request methods (xhr / fetch) export interface RequestResponse { statusCode: number text?: string json?: any error?: unknown } export type RequestCallback = (response: RequestResponse) => void