UNPKG

estafette-router

Version:

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

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