UNPKG

@ospm/eslint-plugin-react-signals-hooks

Version:

ESLint plugin for React Signals hooks - enforces best practices, performance optimizations, and integration patterns for @preact/signals-react usage in React projects

37 lines 1.1 kB
import type { PerformanceMetrics } from './types.mjs'; type AggregatedMetrics = { totalFiles: number; totalNodes: number; totalDuration: number; operationCounts: Record<string, number>; avgDuration: number; maxDuration: number; minDuration: number; avgMemoryDelta: number; maxMemoryDelta: number; minMemoryDelta: number; filesExceededBudget: number; commonExceededOperations: Array<{ operation: string; count: number; }>; performanceByFileSize: Array<{ sizeRange: string; count: number; avgDuration: number; }>; }; declare class MetricsAggregator { private metrics; private static instance; private constructor(); static getInstance(): MetricsAggregator; addMetrics(metrics: PerformanceMetrics): void; getAggregatedMetrics(): AggregatedMetrics; clear(): void; private getEmptyAggregatedMetrics; } export declare const metricsAggregator: MetricsAggregator; export declare function logAggregatedMetrics(): void; export {}; //# sourceMappingURL=metrics-aggregator.d.ts.map