UNPKG

posthog-js

Version:

Posthog-js allows you to automatically capture usage and send events to PostHog.

14 lines (13 loc) • 690 B
import { RequestWithOptions } from './types'; import { jsonStringify } from '@posthog/browser-common/utils/request-utils'; export { jsonStringify }; export declare const SUPPORTS_REQUEST: boolean; /** * Extends a URL with additional query parameters * @param url - The URL to extend * @param params - The parameters to add * @param replace - When true (default), new params overwrite existing ones with same key. When false, existing params are preserved. * @returns The URL with extended parameters */ export declare const extendURLParams: (url: string, params: Record<string, any>, replace?: boolean) => string; export declare const request: (_options: RequestWithOptions) => void;