Some checks failed
Build & Deploy KLZ Cables / 🔍 Prepare Environment (push) Successful in 7s
Build & Deploy KLZ Cables / 🏗️ Build App (push) Successful in 4m3s
Build & Deploy KLZ Cables / 🏗️ Build Gatekeeper (push) Successful in 20s
Build & Deploy KLZ Cables / 🚀 Deploy (push) Has been cancelled
Build & Deploy KLZ Cables / ⚡ PageSpeed (push) Has been cancelled
Build & Deploy KLZ Cables / 🔔 Notifications (push) Has been cancelled
Build & Deploy KLZ Cables / 🧪 Quality Assurance (push) Has been cancelled
22 lines
651 B
TypeScript
22 lines
651 B
TypeScript
export type ErrorReportingUser = {
|
|
id?: string;
|
|
email?: string;
|
|
username?: string;
|
|
};
|
|
|
|
export type ErrorReportingLevel = 'fatal' | 'error' | 'warning' | 'info' | 'debug' | 'log';
|
|
|
|
export interface ErrorReportingService {
|
|
captureException(
|
|
error: unknown,
|
|
context?: Record<string, unknown>,
|
|
): Promise<string | undefined> | string | undefined;
|
|
captureMessage(
|
|
message: string,
|
|
level?: ErrorReportingLevel,
|
|
): Promise<string | undefined> | string | undefined;
|
|
setUser(user: ErrorReportingUser | null): void;
|
|
setTag(key: string, value: string): void;
|
|
withScope<T>(fn: () => T, context?: Record<string, unknown>): T;
|
|
}
|