1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | import { ParseOptions, TokensToFunctionOptions } from 'path-to-regexp';
|
10 | import UniversalRouter from './UniversalRouter';
|
11 | export interface UrlParams {
|
12 | [paramName: string]: string | number | (string | number)[];
|
13 | }
|
14 | export interface GenerateUrlsOptions extends ParseOptions, TokensToFunctionOptions {
|
15 | |
16 |
|
17 |
|
18 | stringifyQueryParams?: (params: UrlParams) => string;
|
19 | }
|
20 |
|
21 |
|
22 |
|
23 | declare const generateUrl: (routeName: string, params?: UrlParams) => string;
|
24 | declare type GenerateUrl = typeof generateUrl;
|
25 |
|
26 |
|
27 |
|
28 | declare function generateUrls(router: UniversalRouter, options?: GenerateUrlsOptions): GenerateUrl;
|
29 | export default generateUrls;
|