Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@ node_modules
.env

.wrangler
.dev.vars
.dev.vars

# Package lock files (project uses pnpm)
package-lock.json
9 changes: 9 additions & 0 deletions .react-router/types/+future.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Generated by React Router

import "react-router";

declare module "react-router" {
interface Future {
unstable_middleware: false
}
}
13 changes: 0 additions & 13 deletions .react-router/types/+register.ts

This file was deleted.

50 changes: 50 additions & 0 deletions .react-router/types/+routes.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
// Generated by React Router

import "react-router"

declare module "react-router" {
interface Register {
pages: Pages
routeFiles: RouteFiles
}
}

type Pages = {
"/": {
params: {};
};
"/docs": {
params: {};
};
"/docs/:path": {
params: {
"path": string;
};
};
"/smithery": {
params: {};
};
};

type RouteFiles = {
"root.tsx": {
id: "root";
page: "/" | "/docs" | "/docs/:path" | "/smithery";
};
"routes/home.tsx": {
id: "routes/home";
page: "/";
};
"routes/docs._index.tsx": {
id: "routes/docs._index";
page: "/docs";
};
"routes/docs.$path.tsx": {
id: "routes/docs.$path";
page: "/docs/:path";
};
"routes/smithery.ts": {
id: "routes/smithery";
page: "/smithery";
};
};
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Generated by React Router

declare module "virtual:react-router/server-build" {
import { ServerBuild } from "react-router";
export const assets: ServerBuild["assets"];
Expand All @@ -8,6 +10,7 @@ declare module "virtual:react-router/server-build" {
export const isSpaMode: ServerBuild["isSpaMode"];
export const prerender: ServerBuild["prerender"];
export const publicPath: ServerBuild["publicPath"];
export const routeDiscovery: ServerBuild["routeDiscovery"];
export const routes: ServerBuild["routes"];
export const ssr: ServerBuild["ssr"];
export const unstable_getCriticalCss: ServerBuild["unstable_getCriticalCss"];
Expand Down
85 changes: 51 additions & 34 deletions .react-router/types/app/+types/root.ts
Original file line number Diff line number Diff line change
@@ -1,42 +1,59 @@
// React Router generated types for route:
// root.tsx

import type * as T from "react-router/route-module"

// Generated by React Router

import type { GetInfo, GetAnnotations } from "react-router/internal";

type Module = typeof import("../root.js")

export type Info = {
parents: [],
id: "root"
file: "root.tsx"
path: ""
params: {} & { [key: string]: string | undefined }
type Info = GetInfo<{
file: "root.tsx",
module: Module
loaderData: T.CreateLoaderData<Module>
actionData: T.CreateActionData<Module>
}
}>

type Matches = [{
id: "root";
module: typeof import("../root.js");
}];

type Annotations = GetAnnotations<Info & { module: Module, matches: Matches }>;

export namespace Route {
export type LinkDescriptors = T.LinkDescriptors
export type LinksFunction = () => LinkDescriptors

export type MetaArgs = T.CreateMetaArgs<Info>
export type MetaDescriptors = T.MetaDescriptors
export type MetaFunction = (args: MetaArgs) => MetaDescriptors

export type HeadersArgs = T.HeadersArgs
export type HeadersFunction = (args: HeadersArgs) => Headers | HeadersInit

export type unstable_MiddlewareFunction = T.CreateServerMiddlewareFunction<Info>
export type unstable_ClientMiddlewareFunction = T.CreateClientMiddlewareFunction<Info>
export type LoaderArgs = T.CreateServerLoaderArgs<Info>
export type ClientLoaderArgs = T.CreateClientLoaderArgs<Info>
export type ActionArgs = T.CreateServerActionArgs<Info>
export type ClientActionArgs = T.CreateClientActionArgs<Info>

export type HydrateFallbackProps = T.CreateHydrateFallbackProps<Info>
export type ComponentProps = T.CreateComponentProps<Info>
export type ErrorBoundaryProps = T.CreateErrorBoundaryProps<Info>
// links
export type LinkDescriptors = Annotations["LinkDescriptors"];
export type LinksFunction = Annotations["LinksFunction"];

// meta
export type MetaArgs = Annotations["MetaArgs"];
export type MetaDescriptors = Annotations["MetaDescriptors"];
export type MetaFunction = Annotations["MetaFunction"];

// headers
export type HeadersArgs = Annotations["HeadersArgs"];
export type HeadersFunction = Annotations["HeadersFunction"];

// unstable_middleware
export type unstable_MiddlewareFunction = Annotations["unstable_MiddlewareFunction"];

// unstable_clientMiddleware
export type unstable_ClientMiddlewareFunction = Annotations["unstable_ClientMiddlewareFunction"];

// loader
export type LoaderArgs = Annotations["LoaderArgs"];

// clientLoader
export type ClientLoaderArgs = Annotations["ClientLoaderArgs"];

// action
export type ActionArgs = Annotations["ActionArgs"];

// clientAction
export type ClientActionArgs = Annotations["ClientActionArgs"];

// HydrateFallback
export type HydrateFallbackProps = Annotations["HydrateFallbackProps"];

// Component
export type ComponentProps = Annotations["ComponentProps"];

// ErrorBoundary
export type ErrorBoundaryProps = Annotations["ErrorBoundaryProps"];
}
62 changes: 62 additions & 0 deletions .react-router/types/app/routes/+types/docs.$path.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
// Generated by React Router

import type { GetInfo, GetAnnotations } from "react-router/internal";

type Module = typeof import("../docs.$path.js")

type Info = GetInfo<{
file: "routes/docs.$path.tsx",
module: Module
}>

type Matches = [{
id: "root";
module: typeof import("../../root.js");
}, {
id: "routes/docs.$path";
module: typeof import("../docs.$path.js");
}];

type Annotations = GetAnnotations<Info & { module: Module, matches: Matches }>;

export namespace Route {
// links
export type LinkDescriptors = Annotations["LinkDescriptors"];
export type LinksFunction = Annotations["LinksFunction"];

// meta
export type MetaArgs = Annotations["MetaArgs"];
export type MetaDescriptors = Annotations["MetaDescriptors"];
export type MetaFunction = Annotations["MetaFunction"];

// headers
export type HeadersArgs = Annotations["HeadersArgs"];
export type HeadersFunction = Annotations["HeadersFunction"];

// unstable_middleware
export type unstable_MiddlewareFunction = Annotations["unstable_MiddlewareFunction"];

// unstable_clientMiddleware
export type unstable_ClientMiddlewareFunction = Annotations["unstable_ClientMiddlewareFunction"];

// loader
export type LoaderArgs = Annotations["LoaderArgs"];

// clientLoader
export type ClientLoaderArgs = Annotations["ClientLoaderArgs"];

// action
export type ActionArgs = Annotations["ActionArgs"];

// clientAction
export type ClientActionArgs = Annotations["ClientActionArgs"];

// HydrateFallback
export type HydrateFallbackProps = Annotations["HydrateFallbackProps"];

// Component
export type ComponentProps = Annotations["ComponentProps"];

// ErrorBoundary
export type ErrorBoundaryProps = Annotations["ErrorBoundaryProps"];
}
62 changes: 62 additions & 0 deletions .react-router/types/app/routes/+types/docs._index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
// Generated by React Router

import type { GetInfo, GetAnnotations } from "react-router/internal";

type Module = typeof import("../docs._index.js")

type Info = GetInfo<{
file: "routes/docs._index.tsx",
module: Module
}>

type Matches = [{
id: "root";
module: typeof import("../../root.js");
}, {
id: "routes/docs._index";
module: typeof import("../docs._index.js");
}];

type Annotations = GetAnnotations<Info & { module: Module, matches: Matches }>;

export namespace Route {
// links
export type LinkDescriptors = Annotations["LinkDescriptors"];
export type LinksFunction = Annotations["LinksFunction"];

// meta
export type MetaArgs = Annotations["MetaArgs"];
export type MetaDescriptors = Annotations["MetaDescriptors"];
export type MetaFunction = Annotations["MetaFunction"];

// headers
export type HeadersArgs = Annotations["HeadersArgs"];
export type HeadersFunction = Annotations["HeadersFunction"];

// unstable_middleware
export type unstable_MiddlewareFunction = Annotations["unstable_MiddlewareFunction"];

// unstable_clientMiddleware
export type unstable_ClientMiddlewareFunction = Annotations["unstable_ClientMiddlewareFunction"];

// loader
export type LoaderArgs = Annotations["LoaderArgs"];

// clientLoader
export type ClientLoaderArgs = Annotations["ClientLoaderArgs"];

// action
export type ActionArgs = Annotations["ActionArgs"];

// clientAction
export type ClientActionArgs = Annotations["ClientActionArgs"];

// HydrateFallback
export type HydrateFallbackProps = Annotations["HydrateFallbackProps"];

// Component
export type ComponentProps = Annotations["ComponentProps"];

// ErrorBoundary
export type ErrorBoundaryProps = Annotations["ErrorBoundaryProps"];
}
Loading