UNPKG

@shopify/cli-kit

Version:

A set of utilities, interfaces, and models that are common across all the platform features

34 lines (33 loc) 898 B
import { ErrorCategory } from './error-categorizer.js'; interface TimingEntry { event: string; duration: number; } interface ErrorEntry { category: ErrorCategory; message: string; timestamp: number; } interface RetryEntry { url: string; operation: string; attempts: number; timestamp: number; } interface EventEntry { name: string; timestamp: number; } export interface RuntimeData { timings: TimingEntry[]; errors: ErrorEntry[]; retries: RetryEntry[]; events: EventEntry[]; } export declare function recordTiming(eventName: string): void; export declare function recordError(error: unknown): void; export declare function recordRetry(url: string, operation: string): void; export declare function recordEvent(eventName: string): void; export declare function compileData(): RuntimeData; export declare function reset(): void; export {};