UNPKG

posthog-js

Version:

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

12 lines (11 loc) • 543 B
/** * Public config is `string[]` today. Keep `boolean` internally because the * earliest browser-only `__add_tracing_headers` preview option shipped as a * boolean, where `true` meant "add tracing headers to every request". */ export type TracingHeadersHostnames = string[] | boolean | undefined; /** * Allow a provider so headers use the current distinct ID after bootstrap, * identify(), reset(), or other identity changes without re-patching fetch/XHR. */ export type TracingHeadersDistinctId = string | (() => string | undefined);