Files
Evandro Fonseca Junior 50ffed4fee fix(error tracking): streamline Rybbit integration by removing unnecessary type assertions
- Updated ErrorBoundary and ErrorTracking components to directly access the Rybbit object without type assertions.
- Enhanced error tracking by ensuring stack traces and component stacks are only included if available.
- Improved the HeroSection component by replacing the standard img tag with Next.js Image component for better performance and optimization.
2026-01-20 21:36:20 -03:00

30 lines
566 B
TypeScript

/**
* Definições de tipos para a API do Rybbit Analytics
* Estende a interface Window global para incluir o objeto rybbit
*/
interface RybbitTrackEvent {
message?: string;
stack?: string | null;
componentStack?: string | null;
errorName?: string;
timestamp?: string;
type?: string;
filename?: string | null;
lineno?: number | null;
colno?: number | null;
[key: string]: unknown;
}
interface Rybbit {
track(eventName: string, data?: RybbitTrackEvent): void;
}
declare global {
interface Window {
rybbit?: Rybbit;
}
}
export {};