@posthog/types
Version:
Type definitions for the PostHog JavaScript SDK
15 lines (11 loc) • 322 B
text/typescript
/**
* 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
}
export type RequestCallback = (response: RequestResponse) => void