UNPKG

estafette-router

Version:

Estafette Router helps you write React Routes faster, safer and more convenient.

12 lines (11 loc) 424 B
export declare type Params = { [key: string]: any; }; export declare const useRouterHelpers: () => { getRoute: (name: string, params?: Params | undefined) => string; getRouteByPath: () => string; isUrlActive: (urls: string | string[]) => boolean; isRouteActive: (names: string | string[], defaultParams?: Params | undefined) => boolean; }; declare const _default: {}; export default _default;