UNPKG

one

Version:

One is a new React Framework that makes Vite serve both native and web.

25 lines 838 B
/** * Simple registry for devtools functions. * This avoids circular dependencies by letting modules register their * devtools functions instead of router.ts importing them. */ type LoaderTimingEntry = { path: string; startTime: number; moduleLoadTime?: number; executionTime?: number; totalTime?: number; error?: string; source: 'preload' | 'initial' | 'refetch'; }; type DevtoolsRegistry = { getLoaderTimingHistory?: () => any[]; recordLoaderTiming?: (entry: LoaderTimingEntry) => void; }; export declare const devtoolsRegistry: DevtoolsRegistry; /** * Register a devtools function. Called by modules like useLoader.ts */ export declare function registerDevtoolsFunction<K extends keyof DevtoolsRegistry>(key: K, fn: DevtoolsRegistry[K]): void; export {}; //# sourceMappingURL=registry.d.ts.map