@grafana/faro-web-sdk
Version:
Faro instrumentations, metas, transports for web.
13 lines (12 loc) • 760 B
TypeScript
import type { HttpRequestEndMessage, HttpRequestStartMessage } from '../_internal/monitors/types';
/**
* Parses the action attribute name by removing the 'data-' prefix and converting
* the remaining string to camelCase.
*
* This is needed because the browser will remove the 'data-' prefix and the dashes from
* data attributes and make then camelCase.
*/
export declare function convertDataAttributeName(userActionDataAttribute: string): string | undefined;
export declare function startTimeout(timeoutId: number | undefined, cb: () => void, delay: number): number | undefined;
export declare function isRequestStartMessage(msg: any): msg is HttpRequestStartMessage;
export declare function isRequestEndMessage(msg: any): msg is HttpRequestEndMessage;