UNPKG

@grafana/faro-react

Version:

Faro package that enables easier integration in projects built with React.

17 lines (16 loc) 525 B
import { NavigationType, ReactRouterLocation } from '../types'; import type { RouteObjectV6DataRouter } from './types'; interface RouterState { historyAction: NavigationType | any; location: ReactRouterLocation; } interface Router { state: RouterState; routes: RouteObjectV6DataRouter[]; subscribe(fn: (state: RouterState) => void): () => void; } /** * To use with React Router 6.4 data APIs. */ export declare function withFaroRouterInstrumentation<R extends Router = Router>(router: R): R; export {};