posthog-js
Version:
Posthog-js allows you to automatically capture usage and send events to PostHog.
5 lines (4 loc) • 353 B
TypeScript
export declare function appendArray(currentValue: string[] | undefined, sampleType: string | string[]): string[];
export declare function updateThreshold(currentValue: number | undefined, percent: number): number;
export declare function simpleHash(str: string): number;
export declare function sampleOnProperty(prop: string, percent: number): boolean;