From 882c4955f735b4dee3162b6589f27078a56d41a4 Mon Sep 17 00:00:00 2001 From: Alem Tuzlak Date: Wed, 5 Feb 2025 16:14:18 +0100 Subject: [PATCH] remove types --- .../.react-router/types/app/+types/root.ts | 40 ------------------- .../types/app/routes/+types/_index.ts | 40 ------------------- .../.react-router/types/app/+types/root.ts | 40 ------------------- .../types/app/routes/+types/_index.ts | 40 ------------------- 4 files changed, 160 deletions(-) delete mode 100644 test-apps/react-router-cjs/.react-router/types/app/+types/root.ts delete mode 100644 test-apps/react-router-cjs/.react-router/types/app/routes/+types/_index.ts delete mode 100644 test-apps/react-router-esm/.react-router/types/app/+types/root.ts delete mode 100644 test-apps/react-router-esm/.react-router/types/app/routes/+types/_index.ts diff --git a/test-apps/react-router-cjs/.react-router/types/app/+types/root.ts b/test-apps/react-router-cjs/.react-router/types/app/+types/root.ts deleted file mode 100644 index d0b5abd..0000000 --- a/test-apps/react-router-cjs/.react-router/types/app/+types/root.ts +++ /dev/null @@ -1,40 +0,0 @@ -// React Router generated types for route: -// root.tsx - -import type * as T from "react-router/route-module" - - - -type Module = typeof import("../root.js") - -export type Info = { - parents: [], - id: "root" - file: "root.tsx" - path: "" - params: {} & { [key: string]: string | undefined } - 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 HeadersArgs = T.HeadersArgs - export type HeadersFunction = (args: HeadersArgs) => Headers | HeadersInit - - 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/test-apps/react-router-cjs/.react-router/types/app/routes/+types/_index.ts b/test-apps/react-router-cjs/.react-router/types/app/routes/+types/_index.ts deleted file mode 100644 index 42a30ff..0000000 --- a/test-apps/react-router-cjs/.react-router/types/app/routes/+types/_index.ts +++ /dev/null @@ -1,40 +0,0 @@ -// 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.js" - -type Module = typeof import("../_index.js") - -export type Info = { - parents: [Parent0], - id: "routes/_index" - file: "./routes/_index.tsx" - path: "/" - params: {} & { [key: string]: string | undefined } - 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 HeadersArgs = T.HeadersArgs - export type HeadersFunction = (args: HeadersArgs) => Headers | HeadersInit - - 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/test-apps/react-router-esm/.react-router/types/app/+types/root.ts b/test-apps/react-router-esm/.react-router/types/app/+types/root.ts deleted file mode 100644 index d0b5abd..0000000 --- a/test-apps/react-router-esm/.react-router/types/app/+types/root.ts +++ /dev/null @@ -1,40 +0,0 @@ -// React Router generated types for route: -// root.tsx - -import type * as T from "react-router/route-module" - - - -type Module = typeof import("../root.js") - -export type Info = { - parents: [], - id: "root" - file: "root.tsx" - path: "" - params: {} & { [key: string]: string | undefined } - 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 HeadersArgs = T.HeadersArgs - export type HeadersFunction = (args: HeadersArgs) => Headers | HeadersInit - - 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/test-apps/react-router-esm/.react-router/types/app/routes/+types/_index.ts b/test-apps/react-router-esm/.react-router/types/app/routes/+types/_index.ts deleted file mode 100644 index 42a30ff..0000000 --- a/test-apps/react-router-esm/.react-router/types/app/routes/+types/_index.ts +++ /dev/null @@ -1,40 +0,0 @@ -// 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.js" - -type Module = typeof import("../_index.js") - -export type Info = { - parents: [Parent0], - id: "routes/_index" - file: "./routes/_index.tsx" - path: "/" - params: {} & { [key: string]: string | undefined } - 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 HeadersArgs = T.HeadersArgs - export type HeadersFunction = (args: HeadersArgs) => Headers | HeadersInit - - 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