Skip to content

Commit 246aae2

Browse files
committed
react router is great
1 parent 196f84c commit 246aae2

38 files changed

+3710
-131
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Generated by React Router
2+
3+
import "react-router";
4+
5+
declare module "react-router" {
6+
interface Future {
7+
unstable_middleware: false
8+
}
9+
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
// Generated by React Router
2+
3+
import "react-router"
4+
5+
declare module "react-router" {
6+
interface Register {
7+
pages: Pages
8+
routeFiles: RouteFiles
9+
}
10+
}
11+
12+
type Pages = {
13+
"/": {
14+
params: {};
15+
};
16+
"/ui/journal-viewer": {
17+
params: {};
18+
};
19+
"/*": {
20+
params: {
21+
"*": string;
22+
};
23+
};
24+
};
25+
26+
type RouteFiles = {
27+
"root.tsx": {
28+
id: "root";
29+
page: "/" | "/ui/journal-viewer" | "/*";
30+
};
31+
"routes/index.tsx": {
32+
id: "routes/index";
33+
page: "/";
34+
};
35+
"routes/ui/journal-viewer.tsx": {
36+
id: "routes/ui/journal-viewer";
37+
page: "/ui/journal-viewer";
38+
};
39+
"routes/catch-all.tsx": {
40+
id: "routes/catch-all";
41+
page: "/*";
42+
};
43+
};
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Generated by React Router
2+
3+
declare module "virtual:react-router/server-build" {
4+
import { ServerBuild } from "react-router";
5+
export const assets: ServerBuild["assets"];
6+
export const assetsBuildDirectory: ServerBuild["assetsBuildDirectory"];
7+
export const basename: ServerBuild["basename"];
8+
export const entry: ServerBuild["entry"];
9+
export const future: ServerBuild["future"];
10+
export const isSpaMode: ServerBuild["isSpaMode"];
11+
export const prerender: ServerBuild["prerender"];
12+
export const publicPath: ServerBuild["publicPath"];
13+
export const routeDiscovery: ServerBuild["routeDiscovery"];
14+
export const routes: ServerBuild["routes"];
15+
export const ssr: ServerBuild["ssr"];
16+
export const unstable_getCriticalCss: ServerBuild["unstable_getCriticalCss"];
17+
}
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
// Generated by React Router
2+
3+
import type { GetInfo, GetAnnotations } from "react-router/internal";
4+
5+
type Module = typeof import("../root.js")
6+
7+
type Info = GetInfo<{
8+
file: "root.tsx",
9+
module: Module
10+
}>
11+
12+
type Matches = [{
13+
id: "root";
14+
module: typeof import("../root.js");
15+
}];
16+
17+
type Annotations = GetAnnotations<Info & { module: Module, matches: Matches }>;
18+
19+
export namespace Route {
20+
// links
21+
export type LinkDescriptors = Annotations["LinkDescriptors"];
22+
export type LinksFunction = Annotations["LinksFunction"];
23+
24+
// meta
25+
export type MetaArgs = Annotations["MetaArgs"];
26+
export type MetaDescriptors = Annotations["MetaDescriptors"];
27+
export type MetaFunction = Annotations["MetaFunction"];
28+
29+
// headers
30+
export type HeadersArgs = Annotations["HeadersArgs"];
31+
export type HeadersFunction = Annotations["HeadersFunction"];
32+
33+
// unstable_middleware
34+
export type unstable_MiddlewareFunction = Annotations["unstable_MiddlewareFunction"];
35+
36+
// unstable_clientMiddleware
37+
export type unstable_ClientMiddlewareFunction = Annotations["unstable_ClientMiddlewareFunction"];
38+
39+
// loader
40+
export type LoaderArgs = Annotations["LoaderArgs"];
41+
42+
// clientLoader
43+
export type ClientLoaderArgs = Annotations["ClientLoaderArgs"];
44+
45+
// action
46+
export type ActionArgs = Annotations["ActionArgs"];
47+
48+
// clientAction
49+
export type ClientActionArgs = Annotations["ClientActionArgs"];
50+
51+
// HydrateFallback
52+
export type HydrateFallbackProps = Annotations["HydrateFallbackProps"];
53+
54+
// Component
55+
export type ComponentProps = Annotations["ComponentProps"];
56+
57+
// ErrorBoundary
58+
export type ErrorBoundaryProps = Annotations["ErrorBoundaryProps"];
59+
}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
// Generated by React Router
2+
3+
import type { GetInfo, GetAnnotations } from "react-router/internal";
4+
5+
type Module = typeof import("../catch-all.js")
6+
7+
type Info = GetInfo<{
8+
file: "routes/catch-all.tsx",
9+
module: Module
10+
}>
11+
12+
type Matches = [{
13+
id: "root";
14+
module: typeof import("../../root.js");
15+
}, {
16+
id: "routes/catch-all";
17+
module: typeof import("../catch-all.js");
18+
}];
19+
20+
type Annotations = GetAnnotations<Info & { module: Module, matches: Matches }>;
21+
22+
export namespace Route {
23+
// links
24+
export type LinkDescriptors = Annotations["LinkDescriptors"];
25+
export type LinksFunction = Annotations["LinksFunction"];
26+
27+
// meta
28+
export type MetaArgs = Annotations["MetaArgs"];
29+
export type MetaDescriptors = Annotations["MetaDescriptors"];
30+
export type MetaFunction = Annotations["MetaFunction"];
31+
32+
// headers
33+
export type HeadersArgs = Annotations["HeadersArgs"];
34+
export type HeadersFunction = Annotations["HeadersFunction"];
35+
36+
// unstable_middleware
37+
export type unstable_MiddlewareFunction = Annotations["unstable_MiddlewareFunction"];
38+
39+
// unstable_clientMiddleware
40+
export type unstable_ClientMiddlewareFunction = Annotations["unstable_ClientMiddlewareFunction"];
41+
42+
// loader
43+
export type LoaderArgs = Annotations["LoaderArgs"];
44+
45+
// clientLoader
46+
export type ClientLoaderArgs = Annotations["ClientLoaderArgs"];
47+
48+
// action
49+
export type ActionArgs = Annotations["ActionArgs"];
50+
51+
// clientAction
52+
export type ClientActionArgs = Annotations["ClientActionArgs"];
53+
54+
// HydrateFallback
55+
export type HydrateFallbackProps = Annotations["HydrateFallbackProps"];
56+
57+
// Component
58+
export type ComponentProps = Annotations["ComponentProps"];
59+
60+
// ErrorBoundary
61+
export type ErrorBoundaryProps = Annotations["ErrorBoundaryProps"];
62+
}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
// Generated by React Router
2+
3+
import type { GetInfo, GetAnnotations } from "react-router/internal";
4+
5+
type Module = typeof import("../index.js")
6+
7+
type Info = GetInfo<{
8+
file: "routes/index.tsx",
9+
module: Module
10+
}>
11+
12+
type Matches = [{
13+
id: "root";
14+
module: typeof import("../../root.js");
15+
}, {
16+
id: "routes/index";
17+
module: typeof import("../index.js");
18+
}];
19+
20+
type Annotations = GetAnnotations<Info & { module: Module, matches: Matches }>;
21+
22+
export namespace Route {
23+
// links
24+
export type LinkDescriptors = Annotations["LinkDescriptors"];
25+
export type LinksFunction = Annotations["LinksFunction"];
26+
27+
// meta
28+
export type MetaArgs = Annotations["MetaArgs"];
29+
export type MetaDescriptors = Annotations["MetaDescriptors"];
30+
export type MetaFunction = Annotations["MetaFunction"];
31+
32+
// headers
33+
export type HeadersArgs = Annotations["HeadersArgs"];
34+
export type HeadersFunction = Annotations["HeadersFunction"];
35+
36+
// unstable_middleware
37+
export type unstable_MiddlewareFunction = Annotations["unstable_MiddlewareFunction"];
38+
39+
// unstable_clientMiddleware
40+
export type unstable_ClientMiddlewareFunction = Annotations["unstable_ClientMiddlewareFunction"];
41+
42+
// loader
43+
export type LoaderArgs = Annotations["LoaderArgs"];
44+
45+
// clientLoader
46+
export type ClientLoaderArgs = Annotations["ClientLoaderArgs"];
47+
48+
// action
49+
export type ActionArgs = Annotations["ActionArgs"];
50+
51+
// clientAction
52+
export type ClientActionArgs = Annotations["ClientActionArgs"];
53+
54+
// HydrateFallback
55+
export type HydrateFallbackProps = Annotations["HydrateFallbackProps"];
56+
57+
// Component
58+
export type ComponentProps = Annotations["ComponentProps"];
59+
60+
// ErrorBoundary
61+
export type ErrorBoundaryProps = Annotations["ErrorBoundaryProps"];
62+
}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
// Generated by React Router
2+
3+
import type { GetInfo, GetAnnotations } from "react-router/internal";
4+
5+
type Module = typeof import("../journal-viewer.js")
6+
7+
type Info = GetInfo<{
8+
file: "routes/ui/journal-viewer.tsx",
9+
module: Module
10+
}>
11+
12+
type Matches = [{
13+
id: "root";
14+
module: typeof import("../../../root.js");
15+
}, {
16+
id: "routes/ui/journal-viewer";
17+
module: typeof import("../journal-viewer.js");
18+
}];
19+
20+
type Annotations = GetAnnotations<Info & { module: Module, matches: Matches }>;
21+
22+
export namespace Route {
23+
// links
24+
export type LinkDescriptors = Annotations["LinkDescriptors"];
25+
export type LinksFunction = Annotations["LinksFunction"];
26+
27+
// meta
28+
export type MetaArgs = Annotations["MetaArgs"];
29+
export type MetaDescriptors = Annotations["MetaDescriptors"];
30+
export type MetaFunction = Annotations["MetaFunction"];
31+
32+
// headers
33+
export type HeadersArgs = Annotations["HeadersArgs"];
34+
export type HeadersFunction = Annotations["HeadersFunction"];
35+
36+
// unstable_middleware
37+
export type unstable_MiddlewareFunction = Annotations["unstable_MiddlewareFunction"];
38+
39+
// unstable_clientMiddleware
40+
export type unstable_ClientMiddlewareFunction = Annotations["unstable_ClientMiddlewareFunction"];
41+
42+
// loader
43+
export type LoaderArgs = Annotations["LoaderArgs"];
44+
45+
// clientLoader
46+
export type ClientLoaderArgs = Annotations["ClientLoaderArgs"];
47+
48+
// action
49+
export type ActionArgs = Annotations["ActionArgs"];
50+
51+
// clientAction
52+
export type ClientActionArgs = Annotations["ClientActionArgs"];
53+
54+
// HydrateFallback
55+
export type HydrateFallbackProps = Annotations["HydrateFallbackProps"];
56+
57+
// Component
58+
export type ComponentProps = Annotations["ComponentProps"];
59+
60+
// ErrorBoundary
61+
export type ErrorBoundaryProps = Annotations["ErrorBoundaryProps"];
62+
}

0 commit comments

Comments
 (0)