-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy pathRouter.d.ts
More file actions
39 lines (35 loc) · 823 Bytes
/
Router.d.ts
File metadata and controls
39 lines (35 loc) · 823 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
export interface NullstackRouter {
/**
* The router path including query params.
* Does not contain the domain and port.
*
* @see https://nullstack.app/routes-and-params#router
*/
url: string
/**
* The router path without query params.
*
* @see https://nullstack.app/routes-and-params#router
*/
path: string
/**
* Only the base url
*
* @example: `https://nullstack.app`
* @see https://nullstack.app/routes-and-params#router
*/
base: string
/**
* Event raised when `router.url` (including changes on params) or `router.path` changes.
*
* @see https://nullstack.app/routes-and-params#custom-events
*/
event: string
/**
* The previous route including params
*
* @example `/?origin=social_media`
* @default null
*/
previous: string
}