@grafana/faro-web-sdk
Version:
Faro instrumentations, metas, transports for web.
9 lines (8 loc) • 367 B
TypeScript
/**
* 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;