forked from jacobparis-insiders/remix-custom-routes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
37 lines (31 loc) · 740 Bytes
/
index.d.ts
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
declare module "remix-custom-routes" {
interface Route {
file: string
id: string
index: boolean
path: string
parentId: string
}
interface RouteManifest {
[key: string]: Route
}
export function flatRoutes(appDirectory: string): RouteManifest
export function routeExtensions(appDirectory: string): RouteManifest
export function ensureRootRouteExists(
appDirectory: string,
options?: {
extensions?: string[]
},
): string
export function getRouteIds(
routes: string[],
options: {
prefix?: string
suffix?: string
indexNames?: string[]
},
): string[]
export function getRouteManifest(
sortedRouteIds: [string, string][],
): RouteManifest
}