mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 13:31:14 -05:00
feat: Integrate Cronitor RUM
This commit is contained in:
23
src/types/cronitor.d.ts
vendored
Normal file
23
src/types/cronitor.d.ts
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
declare module '@cronitorio/cronitor-rum' {
|
||||
export interface CronitorConfig {
|
||||
debug?: boolean;
|
||||
trackMode?: 'history' | 'off';
|
||||
}
|
||||
|
||||
export function load(apiKey: string, config?: CronitorConfig): void;
|
||||
|
||||
export function track(eventName: string, data?: Record<string, any>): void;
|
||||
|
||||
export function error(error: Error | string, metadata?: Record<string, any>): void;
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
cronitor?: {
|
||||
track: (eventName: string, data?: Record<string, any>) => void;
|
||||
error: (error: Error | string, metadata?: Record<string, any>) => void;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export {};
|
||||
Reference in New Issue
Block a user