@types/piwik-react-router
TypeScript icon, indicating that this package has built-in type declarations

0.12.2 • Public • Published

Installation

npm install --save @types/piwik-react-router

Summary

This package contains type definitions for piwik-react-router (https://github.com/joernroeder/piwik-react-router).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/piwik-react-router.

index.d.ts

interface PiwikReactRouterHistory {
    location: string;
    listen?: (location: string) => void;
}

interface PiwikReactRouterTrack {
    path: string;
    basename: string;
    pathname: string;
    search: string;
}

interface PiwikReactRouterTrackErrorEvent {
    message: string;
    filename: string;
    lineno: string;
}

interface PiwikReactRouter {
    _isShim: boolean;
    track: (opts: PiwikReactRouterTrack) => void;
    push: (args: any) => void;
    setUserId: (userId: string) => void;
    trackError: (e: PiwikReactRouterTrackErrorEvent, eventName: string) => void;
    connectToHistory: (
        history: PiwikReactRouterHistory,
        modifier: (history: PiwikReactRouterHistory) => void,
    ) => PiwikReactRouterHistory;
    disconnectFromHistory: () => boolean;
}

interface PiwikReactRouterOptions {
    url: string;
    siteId: string;
    enableLinkTracking?: boolean;
    updateDocumentTitle?: boolean;
    trackErrors?: boolean;
    trackErrorHandler?: boolean;
    ignoreInitialVisit?: boolean;
    injectScript?: boolean;
    clientTrackerName?: string;
    serverTrackerName?: string;
}

declare function piwik(option: PiwikReactRouterOptions): PiwikReactRouter;

export = piwik;

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: none

Credits

These definitions were written by Can Serkan UREN.

Dependents (0)

Package Sidebar

Install

npm i @types/piwik-react-router

Weekly Downloads

55

Version

0.12.2

License

MIT

Unpacked Size

5.07 kB

Total Files

5

Last publish

Collaborators

  • types