UNPKG

@posthog/types

Version:

Type definitions for the PostHog JavaScript SDK

16 lines (12 loc) 342 B
/** * Request-related types */ export type Headers = Record<string, string> // 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