Type alias Start<T>

Start<T>: ((onRouteChange: OnRouteChange<T>) => void)

Type Parameters

  • T extends string = string

Type declaration

    • (onRouteChange: OnRouteChange<T>): void
    • Function to start the router.

      Parameters

      • onRouteChange: OnRouteChange<T>

        callback function for when the route changes. This should be used to update the route in the application state. See OnRouteChange.

      Returns void

Generated using TypeDoc