From e57b66fd6e15987d06d86bf2aae2c4ab4bde16df Mon Sep 17 00:00:00 2001 From: Alem Tuzlak Date: Fri, 22 Nov 2024 14:54:36 +0100 Subject: [PATCH] final fix --- docs/.react-router/types/app/+types/root.ts | 37 ++++++++++++++++++ .../types/app/routes/+types/_index.ts | 37 ++++++++++++++++++ .../app/routes/+types/docs.$tag.$slug.ts | 38 +++++++++++++++++++ .../app/routes/+types/docs.$tag._index.ts | 38 +++++++++++++++++++ .../types/app/routes/+types/docs.$tag.ts | 37 ++++++++++++++++++ .../types/app/routes/+types/healthcheck.ts | 37 ++++++++++++++++++ .../types/app/routes/+types/updateTheme.ts | 37 ++++++++++++++++++ docs/app/routes.ts | 2 +- 8 files changed, 262 insertions(+), 1 deletion(-) create mode 100644 docs/.react-router/types/app/+types/root.ts create mode 100644 docs/.react-router/types/app/routes/+types/_index.ts create mode 100644 docs/.react-router/types/app/routes/+types/docs.$tag.$slug.ts create mode 100644 docs/.react-router/types/app/routes/+types/docs.$tag._index.ts create mode 100644 docs/.react-router/types/app/routes/+types/docs.$tag.ts create mode 100644 docs/.react-router/types/app/routes/+types/healthcheck.ts create mode 100644 docs/.react-router/types/app/routes/+types/updateTheme.ts diff --git a/docs/.react-router/types/app/+types/root.ts b/docs/.react-router/types/app/+types/root.ts new file mode 100644 index 0000000..13fa8a0 --- /dev/null +++ b/docs/.react-router/types/app/+types/root.ts @@ -0,0 +1,37 @@ +// React Router generated types for route: +// root.tsx + +import type * as T from "react-router/route-module" + + + +type Module = typeof import("../root") + +export type Info = { + parents: [], + id: "root" + file: "root.tsx" + path: "" + params: {} + module: Module + loaderData: T.CreateLoaderData + actionData: T.CreateActionData +} + +export namespace Route { + export type LinkDescriptors = T.LinkDescriptors + export type LinksFunction = () => LinkDescriptors + + export type MetaArgs = T.CreateMetaArgs + export type MetaDescriptors = T.MetaDescriptors + export type MetaFunction = (args: MetaArgs) => MetaDescriptors + + export type LoaderArgs = T.CreateServerLoaderArgs + export type ClientLoaderArgs = T.CreateClientLoaderArgs + export type ActionArgs = T.CreateServerActionArgs + export type ClientActionArgs = T.CreateClientActionArgs + + export type HydrateFallbackProps = T.CreateHydrateFallbackProps + export type ComponentProps = T.CreateComponentProps + export type ErrorBoundaryProps = T.CreateErrorBoundaryProps +} \ No newline at end of file diff --git a/docs/.react-router/types/app/routes/+types/_index.ts b/docs/.react-router/types/app/routes/+types/_index.ts new file mode 100644 index 0000000..4c9beb4 --- /dev/null +++ b/docs/.react-router/types/app/routes/+types/_index.ts @@ -0,0 +1,37 @@ +// React Router generated types for route: +// routes/_index.tsx + +import type * as T from "react-router/route-module" + +import type { Info as Parent0 } from "../../+types/root" + +type Module = typeof import("../_index") + +export type Info = { + parents: [Parent0], + id: "routes/_index" + file: "routes/_index.tsx" + path: "undefined" + params: {} + module: Module + loaderData: T.CreateLoaderData + actionData: T.CreateActionData +} + +export namespace Route { + export type LinkDescriptors = T.LinkDescriptors + export type LinksFunction = () => LinkDescriptors + + export type MetaArgs = T.CreateMetaArgs + export type MetaDescriptors = T.MetaDescriptors + export type MetaFunction = (args: MetaArgs) => MetaDescriptors + + export type LoaderArgs = T.CreateServerLoaderArgs + export type ClientLoaderArgs = T.CreateClientLoaderArgs + export type ActionArgs = T.CreateServerActionArgs + export type ClientActionArgs = T.CreateClientActionArgs + + export type HydrateFallbackProps = T.CreateHydrateFallbackProps + export type ComponentProps = T.CreateComponentProps + export type ErrorBoundaryProps = T.CreateErrorBoundaryProps +} \ No newline at end of file diff --git a/docs/.react-router/types/app/routes/+types/docs.$tag.$slug.ts b/docs/.react-router/types/app/routes/+types/docs.$tag.$slug.ts new file mode 100644 index 0000000..ca69729 --- /dev/null +++ b/docs/.react-router/types/app/routes/+types/docs.$tag.$slug.ts @@ -0,0 +1,38 @@ +// React Router generated types for route: +// routes/docs.$tag.$slug.tsx + +import type * as T from "react-router/route-module" + +import type { Info as Parent0 } from "../../+types/root" +import type { Info as Parent1 } from "./docs.$tag" + +type Module = typeof import("../docs.$tag.$slug") + +export type Info = { + parents: [Parent0, Parent1], + id: "routes/docs.$tag.$slug" + file: "routes/docs.$tag.$slug.tsx" + path: ":slug" + params: {"tag": string; "slug": string} + module: Module + loaderData: T.CreateLoaderData + actionData: T.CreateActionData +} + +export namespace Route { + export type LinkDescriptors = T.LinkDescriptors + export type LinksFunction = () => LinkDescriptors + + export type MetaArgs = T.CreateMetaArgs + export type MetaDescriptors = T.MetaDescriptors + export type MetaFunction = (args: MetaArgs) => MetaDescriptors + + export type LoaderArgs = T.CreateServerLoaderArgs + export type ClientLoaderArgs = T.CreateClientLoaderArgs + export type ActionArgs = T.CreateServerActionArgs + export type ClientActionArgs = T.CreateClientActionArgs + + export type HydrateFallbackProps = T.CreateHydrateFallbackProps + export type ComponentProps = T.CreateComponentProps + export type ErrorBoundaryProps = T.CreateErrorBoundaryProps +} \ No newline at end of file diff --git a/docs/.react-router/types/app/routes/+types/docs.$tag._index.ts b/docs/.react-router/types/app/routes/+types/docs.$tag._index.ts new file mode 100644 index 0000000..d141c14 --- /dev/null +++ b/docs/.react-router/types/app/routes/+types/docs.$tag._index.ts @@ -0,0 +1,38 @@ +// React Router generated types for route: +// routes/docs.$tag._index.tsx + +import type * as T from "react-router/route-module" + +import type { Info as Parent0 } from "../../+types/root" +import type { Info as Parent1 } from "./docs.$tag" + +type Module = typeof import("../docs.$tag._index") + +export type Info = { + parents: [Parent0, Parent1], + id: "routes/docs.$tag._index" + file: "routes/docs.$tag._index.tsx" + path: "undefined" + params: {"tag": string} + module: Module + loaderData: T.CreateLoaderData + actionData: T.CreateActionData +} + +export namespace Route { + export type LinkDescriptors = T.LinkDescriptors + export type LinksFunction = () => LinkDescriptors + + export type MetaArgs = T.CreateMetaArgs + export type MetaDescriptors = T.MetaDescriptors + export type MetaFunction = (args: MetaArgs) => MetaDescriptors + + export type LoaderArgs = T.CreateServerLoaderArgs + export type ClientLoaderArgs = T.CreateClientLoaderArgs + export type ActionArgs = T.CreateServerActionArgs + export type ClientActionArgs = T.CreateClientActionArgs + + export type HydrateFallbackProps = T.CreateHydrateFallbackProps + export type ComponentProps = T.CreateComponentProps + export type ErrorBoundaryProps = T.CreateErrorBoundaryProps +} \ No newline at end of file diff --git a/docs/.react-router/types/app/routes/+types/docs.$tag.ts b/docs/.react-router/types/app/routes/+types/docs.$tag.ts new file mode 100644 index 0000000..32facab --- /dev/null +++ b/docs/.react-router/types/app/routes/+types/docs.$tag.ts @@ -0,0 +1,37 @@ +// React Router generated types for route: +// routes/docs.$tag.tsx + +import type * as T from "react-router/route-module" + +import type { Info as Parent0 } from "../../+types/root" + +type Module = typeof import("../docs.$tag") + +export type Info = { + parents: [Parent0], + id: "routes/docs.$tag" + file: "routes/docs.$tag.tsx" + path: "docs/:tag" + params: {"tag": string} + module: Module + loaderData: T.CreateLoaderData + actionData: T.CreateActionData +} + +export namespace Route { + export type LinkDescriptors = T.LinkDescriptors + export type LinksFunction = () => LinkDescriptors + + export type MetaArgs = T.CreateMetaArgs + export type MetaDescriptors = T.MetaDescriptors + export type MetaFunction = (args: MetaArgs) => MetaDescriptors + + export type LoaderArgs = T.CreateServerLoaderArgs + export type ClientLoaderArgs = T.CreateClientLoaderArgs + export type ActionArgs = T.CreateServerActionArgs + export type ClientActionArgs = T.CreateClientActionArgs + + export type HydrateFallbackProps = T.CreateHydrateFallbackProps + export type ComponentProps = T.CreateComponentProps + export type ErrorBoundaryProps = T.CreateErrorBoundaryProps +} \ No newline at end of file diff --git a/docs/.react-router/types/app/routes/+types/healthcheck.ts b/docs/.react-router/types/app/routes/+types/healthcheck.ts new file mode 100644 index 0000000..d2eb816 --- /dev/null +++ b/docs/.react-router/types/app/routes/+types/healthcheck.ts @@ -0,0 +1,37 @@ +// React Router generated types for route: +// routes/healthcheck.tsx + +import type * as T from "react-router/route-module" + +import type { Info as Parent0 } from "../../+types/root" + +type Module = typeof import("../healthcheck") + +export type Info = { + parents: [Parent0], + id: "routes/healthcheck" + file: "routes/healthcheck.tsx" + path: "healthcheck" + params: {} + module: Module + loaderData: T.CreateLoaderData + actionData: T.CreateActionData +} + +export namespace Route { + export type LinkDescriptors = T.LinkDescriptors + export type LinksFunction = () => LinkDescriptors + + export type MetaArgs = T.CreateMetaArgs + export type MetaDescriptors = T.MetaDescriptors + export type MetaFunction = (args: MetaArgs) => MetaDescriptors + + export type LoaderArgs = T.CreateServerLoaderArgs + export type ClientLoaderArgs = T.CreateClientLoaderArgs + export type ActionArgs = T.CreateServerActionArgs + export type ClientActionArgs = T.CreateClientActionArgs + + export type HydrateFallbackProps = T.CreateHydrateFallbackProps + export type ComponentProps = T.CreateComponentProps + export type ErrorBoundaryProps = T.CreateErrorBoundaryProps +} \ No newline at end of file diff --git a/docs/.react-router/types/app/routes/+types/updateTheme.ts b/docs/.react-router/types/app/routes/+types/updateTheme.ts new file mode 100644 index 0000000..1639738 --- /dev/null +++ b/docs/.react-router/types/app/routes/+types/updateTheme.ts @@ -0,0 +1,37 @@ +// React Router generated types for route: +// routes/updateTheme.ts + +import type * as T from "react-router/route-module" + +import type { Info as Parent0 } from "../../+types/root" + +type Module = typeof import("../updateTheme") + +export type Info = { + parents: [Parent0], + id: "routes/updateTheme" + file: "routes/updateTheme.ts" + path: "updateTheme" + params: {} + module: Module + loaderData: T.CreateLoaderData + actionData: T.CreateActionData +} + +export namespace Route { + export type LinkDescriptors = T.LinkDescriptors + export type LinksFunction = () => LinkDescriptors + + export type MetaArgs = T.CreateMetaArgs + export type MetaDescriptors = T.MetaDescriptors + export type MetaFunction = (args: MetaArgs) => MetaDescriptors + + export type LoaderArgs = T.CreateServerLoaderArgs + export type ClientLoaderArgs = T.CreateClientLoaderArgs + export type ActionArgs = T.CreateServerActionArgs + export type ClientActionArgs = T.CreateClientActionArgs + + export type HydrateFallbackProps = T.CreateHydrateFallbackProps + export type ComponentProps = T.CreateComponentProps + export type ErrorBoundaryProps = T.CreateErrorBoundaryProps +} \ No newline at end of file diff --git a/docs/app/routes.ts b/docs/app/routes.ts index d387a16..e5af001 100644 --- a/docs/app/routes.ts +++ b/docs/app/routes.ts @@ -1,3 +1,3 @@ import { flatRoutes } from "@react-router/fs-routes" -export const routes = flatRoutes() +export default flatRoutes()