UNPKG

backtrace-js

Version:

Backtrace.io error reporting tool for client-side applications

20 lines (19 loc) 543 B
export interface IBreadcrumb { id: number; timestamp: number; level: string; type: string; message: string; attributes: object; } export declare class Breadcrumbs { static readonly attachmentName = "bt-breadcrumbs-0"; private breadcrumbLimit; private _breadcrumbs; private id; constructor(breadcrumbLimit?: number); add(message: string, attributes?: {}, timestamp?: number, level?: string, type?: string): void; get(): IBreadcrumb[]; isEnabled(): boolean; private getNowTimestamp; }