-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
Expand file tree
/
Copy pathmanifest.ts
More file actions
37 lines (36 loc) · 817 Bytes
/
manifest.ts
File metadata and controls
37 lines (36 loc) · 817 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
export type ManifestRoute = {
id: string;
parentId?: string;
path?: string;
index?: boolean;
caseSensitive?: boolean;
module: string;
clientLoaderModule: string | undefined;
clientActionModule: string | undefined;
clientMiddlewareModule: string | undefined;
hydrateFallbackModule: string | undefined;
imports?: string[];
hasAction: boolean;
hasLoader: boolean;
hasClientAction: boolean;
hasClientLoader: boolean;
hasClientMiddleware: boolean;
hasErrorBoundary: boolean;
hasDefaultExport: boolean;
};
export type Manifest = {
version: string;
url?: string;
entry: {
module: string;
imports: string[];
};
routes: {
[routeId: string]: ManifestRoute;
};
sri: Record<string, string> | undefined;
hmr?: {
timestamp?: number;
runtime: string;
};
};