UNPKG

@mntm/stats

Version:

A package for integrating analytics tools

36 lines (35 loc) 834 B
/** * Parses any query string */ export declare const parseParams: (from: string) => Record<string, string>; /** * Launch path * @see location.pathname docs * @noinline */ export declare const path: string; /** * Launch hash without number sign (#) * @see location.hash docs * @noinline */ export declare const hash: string; /** * Launch search without question mark (?) * @see location.search docs * @noinline */ export declare const params: string; /** * Parsed launch hash */ export declare const launchHash: Record<string, string>; /** * Parsed launch params */ export declare const launchParams: Record<string, string>; /** * Reassigns all query params, for example, for hash UTM tags. * @warn Must be called before initializing the sending and the router. */ export declare const prepareParams: () => void;