UNPKG

datadog-ux-utils

Version:

Datadog RUM focused UX & performance toolkit: API guards (retry, breaker, rate), React telemetry (error boundary, profiler, Suspense), web vitals & resource observers, offline queues.

15 lines 503 B
export type Flags = { telemetryEnabled: boolean; guardEnabled: boolean; }; type Sub = (f: Flags) => void; export declare function getFlags(): Flags; export declare function setFlags(next: Partial<Flags>): void; export declare function subscribeFlags(cb: Sub): () => boolean; /** * Optional: read initial flags from global or localStorage * Call once in your app bootstrap before initDatadogUx() */ export declare function bootstrapFlags(): void; export {}; //# sourceMappingURL=flags.d.ts.map