Skip to content

Commit e57b66f

Browse files
committed
final fix
1 parent 94b4efb commit e57b66f

File tree

8 files changed

+262
-1
lines changed

8 files changed

+262
-1
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
// React Router generated types for route:
2+
// root.tsx
3+
4+
import type * as T from "react-router/route-module"
5+
6+
7+
8+
type Module = typeof import("../root")
9+
10+
export type Info = {
11+
parents: [],
12+
id: "root"
13+
file: "root.tsx"
14+
path: ""
15+
params: {}
16+
module: Module
17+
loaderData: T.CreateLoaderData<Module>
18+
actionData: T.CreateActionData<Module>
19+
}
20+
21+
export namespace Route {
22+
export type LinkDescriptors = T.LinkDescriptors
23+
export type LinksFunction = () => LinkDescriptors
24+
25+
export type MetaArgs = T.CreateMetaArgs<Info>
26+
export type MetaDescriptors = T.MetaDescriptors
27+
export type MetaFunction = (args: MetaArgs) => MetaDescriptors
28+
29+
export type LoaderArgs = T.CreateServerLoaderArgs<Info>
30+
export type ClientLoaderArgs = T.CreateClientLoaderArgs<Info>
31+
export type ActionArgs = T.CreateServerActionArgs<Info>
32+
export type ClientActionArgs = T.CreateClientActionArgs<Info>
33+
34+
export type HydrateFallbackProps = T.CreateHydrateFallbackProps<Info>
35+
export type ComponentProps = T.CreateComponentProps<Info>
36+
export type ErrorBoundaryProps = T.CreateErrorBoundaryProps<Info>
37+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
// React Router generated types for route:
2+
// routes/_index.tsx
3+
4+
import type * as T from "react-router/route-module"
5+
6+
import type { Info as Parent0 } from "../../+types/root"
7+
8+
type Module = typeof import("../_index")
9+
10+
export type Info = {
11+
parents: [Parent0],
12+
id: "routes/_index"
13+
file: "routes/_index.tsx"
14+
path: "undefined"
15+
params: {}
16+
module: Module
17+
loaderData: T.CreateLoaderData<Module>
18+
actionData: T.CreateActionData<Module>
19+
}
20+
21+
export namespace Route {
22+
export type LinkDescriptors = T.LinkDescriptors
23+
export type LinksFunction = () => LinkDescriptors
24+
25+
export type MetaArgs = T.CreateMetaArgs<Info>
26+
export type MetaDescriptors = T.MetaDescriptors
27+
export type MetaFunction = (args: MetaArgs) => MetaDescriptors
28+
29+
export type LoaderArgs = T.CreateServerLoaderArgs<Info>
30+
export type ClientLoaderArgs = T.CreateClientLoaderArgs<Info>
31+
export type ActionArgs = T.CreateServerActionArgs<Info>
32+
export type ClientActionArgs = T.CreateClientActionArgs<Info>
33+
34+
export type HydrateFallbackProps = T.CreateHydrateFallbackProps<Info>
35+
export type ComponentProps = T.CreateComponentProps<Info>
36+
export type ErrorBoundaryProps = T.CreateErrorBoundaryProps<Info>
37+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// React Router generated types for route:
2+
// routes/docs.$tag.$slug.tsx
3+
4+
import type * as T from "react-router/route-module"
5+
6+
import type { Info as Parent0 } from "../../+types/root"
7+
import type { Info as Parent1 } from "./docs.$tag"
8+
9+
type Module = typeof import("../docs.$tag.$slug")
10+
11+
export type Info = {
12+
parents: [Parent0, Parent1],
13+
id: "routes/docs.$tag.$slug"
14+
file: "routes/docs.$tag.$slug.tsx"
15+
path: ":slug"
16+
params: {"tag": string; "slug": string}
17+
module: Module
18+
loaderData: T.CreateLoaderData<Module>
19+
actionData: T.CreateActionData<Module>
20+
}
21+
22+
export namespace Route {
23+
export type LinkDescriptors = T.LinkDescriptors
24+
export type LinksFunction = () => LinkDescriptors
25+
26+
export type MetaArgs = T.CreateMetaArgs<Info>
27+
export type MetaDescriptors = T.MetaDescriptors
28+
export type MetaFunction = (args: MetaArgs) => MetaDescriptors
29+
30+
export type LoaderArgs = T.CreateServerLoaderArgs<Info>
31+
export type ClientLoaderArgs = T.CreateClientLoaderArgs<Info>
32+
export type ActionArgs = T.CreateServerActionArgs<Info>
33+
export type ClientActionArgs = T.CreateClientActionArgs<Info>
34+
35+
export type HydrateFallbackProps = T.CreateHydrateFallbackProps<Info>
36+
export type ComponentProps = T.CreateComponentProps<Info>
37+
export type ErrorBoundaryProps = T.CreateErrorBoundaryProps<Info>
38+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// React Router generated types for route:
2+
// routes/docs.$tag._index.tsx
3+
4+
import type * as T from "react-router/route-module"
5+
6+
import type { Info as Parent0 } from "../../+types/root"
7+
import type { Info as Parent1 } from "./docs.$tag"
8+
9+
type Module = typeof import("../docs.$tag._index")
10+
11+
export type Info = {
12+
parents: [Parent0, Parent1],
13+
id: "routes/docs.$tag._index"
14+
file: "routes/docs.$tag._index.tsx"
15+
path: "undefined"
16+
params: {"tag": string}
17+
module: Module
18+
loaderData: T.CreateLoaderData<Module>
19+
actionData: T.CreateActionData<Module>
20+
}
21+
22+
export namespace Route {
23+
export type LinkDescriptors = T.LinkDescriptors
24+
export type LinksFunction = () => LinkDescriptors
25+
26+
export type MetaArgs = T.CreateMetaArgs<Info>
27+
export type MetaDescriptors = T.MetaDescriptors
28+
export type MetaFunction = (args: MetaArgs) => MetaDescriptors
29+
30+
export type LoaderArgs = T.CreateServerLoaderArgs<Info>
31+
export type ClientLoaderArgs = T.CreateClientLoaderArgs<Info>
32+
export type ActionArgs = T.CreateServerActionArgs<Info>
33+
export type ClientActionArgs = T.CreateClientActionArgs<Info>
34+
35+
export type HydrateFallbackProps = T.CreateHydrateFallbackProps<Info>
36+
export type ComponentProps = T.CreateComponentProps<Info>
37+
export type ErrorBoundaryProps = T.CreateErrorBoundaryProps<Info>
38+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
// React Router generated types for route:
2+
// routes/docs.$tag.tsx
3+
4+
import type * as T from "react-router/route-module"
5+
6+
import type { Info as Parent0 } from "../../+types/root"
7+
8+
type Module = typeof import("../docs.$tag")
9+
10+
export type Info = {
11+
parents: [Parent0],
12+
id: "routes/docs.$tag"
13+
file: "routes/docs.$tag.tsx"
14+
path: "docs/:tag"
15+
params: {"tag": string}
16+
module: Module
17+
loaderData: T.CreateLoaderData<Module>
18+
actionData: T.CreateActionData<Module>
19+
}
20+
21+
export namespace Route {
22+
export type LinkDescriptors = T.LinkDescriptors
23+
export type LinksFunction = () => LinkDescriptors
24+
25+
export type MetaArgs = T.CreateMetaArgs<Info>
26+
export type MetaDescriptors = T.MetaDescriptors
27+
export type MetaFunction = (args: MetaArgs) => MetaDescriptors
28+
29+
export type LoaderArgs = T.CreateServerLoaderArgs<Info>
30+
export type ClientLoaderArgs = T.CreateClientLoaderArgs<Info>
31+
export type ActionArgs = T.CreateServerActionArgs<Info>
32+
export type ClientActionArgs = T.CreateClientActionArgs<Info>
33+
34+
export type HydrateFallbackProps = T.CreateHydrateFallbackProps<Info>
35+
export type ComponentProps = T.CreateComponentProps<Info>
36+
export type ErrorBoundaryProps = T.CreateErrorBoundaryProps<Info>
37+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
// React Router generated types for route:
2+
// routes/healthcheck.tsx
3+
4+
import type * as T from "react-router/route-module"
5+
6+
import type { Info as Parent0 } from "../../+types/root"
7+
8+
type Module = typeof import("../healthcheck")
9+
10+
export type Info = {
11+
parents: [Parent0],
12+
id: "routes/healthcheck"
13+
file: "routes/healthcheck.tsx"
14+
path: "healthcheck"
15+
params: {}
16+
module: Module
17+
loaderData: T.CreateLoaderData<Module>
18+
actionData: T.CreateActionData<Module>
19+
}
20+
21+
export namespace Route {
22+
export type LinkDescriptors = T.LinkDescriptors
23+
export type LinksFunction = () => LinkDescriptors
24+
25+
export type MetaArgs = T.CreateMetaArgs<Info>
26+
export type MetaDescriptors = T.MetaDescriptors
27+
export type MetaFunction = (args: MetaArgs) => MetaDescriptors
28+
29+
export type LoaderArgs = T.CreateServerLoaderArgs<Info>
30+
export type ClientLoaderArgs = T.CreateClientLoaderArgs<Info>
31+
export type ActionArgs = T.CreateServerActionArgs<Info>
32+
export type ClientActionArgs = T.CreateClientActionArgs<Info>
33+
34+
export type HydrateFallbackProps = T.CreateHydrateFallbackProps<Info>
35+
export type ComponentProps = T.CreateComponentProps<Info>
36+
export type ErrorBoundaryProps = T.CreateErrorBoundaryProps<Info>
37+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
// React Router generated types for route:
2+
// routes/updateTheme.ts
3+
4+
import type * as T from "react-router/route-module"
5+
6+
import type { Info as Parent0 } from "../../+types/root"
7+
8+
type Module = typeof import("../updateTheme")
9+
10+
export type Info = {
11+
parents: [Parent0],
12+
id: "routes/updateTheme"
13+
file: "routes/updateTheme.ts"
14+
path: "updateTheme"
15+
params: {}
16+
module: Module
17+
loaderData: T.CreateLoaderData<Module>
18+
actionData: T.CreateActionData<Module>
19+
}
20+
21+
export namespace Route {
22+
export type LinkDescriptors = T.LinkDescriptors
23+
export type LinksFunction = () => LinkDescriptors
24+
25+
export type MetaArgs = T.CreateMetaArgs<Info>
26+
export type MetaDescriptors = T.MetaDescriptors
27+
export type MetaFunction = (args: MetaArgs) => MetaDescriptors
28+
29+
export type LoaderArgs = T.CreateServerLoaderArgs<Info>
30+
export type ClientLoaderArgs = T.CreateClientLoaderArgs<Info>
31+
export type ActionArgs = T.CreateServerActionArgs<Info>
32+
export type ClientActionArgs = T.CreateClientActionArgs<Info>
33+
34+
export type HydrateFallbackProps = T.CreateHydrateFallbackProps<Info>
35+
export type ComponentProps = T.CreateComponentProps<Info>
36+
export type ErrorBoundaryProps = T.CreateErrorBoundaryProps<Info>
37+
}

docs/app/routes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import { flatRoutes } from "@react-router/fs-routes"
22

3-
export const routes = flatRoutes()
3+
export default flatRoutes()

0 commit comments

Comments
 (0)