From 2bc3d0cdd1981e82e0a832826f8dc300bfaa6250 Mon Sep 17 00:00:00 2001 From: Logan McAnsh Date: Wed, 21 Dec 2022 12:05:14 -0500 Subject: [PATCH] chore(remix-dev): remove no longer used imports that made their way in when this package was created in #4915 Signed-off-by: Logan McAnsh --- packages/remix-react/index.tsx | 11 ++--------- packages/remix-testing/create-remix-stub.tsx | 2 +- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/packages/remix-react/index.tsx b/packages/remix-react/index.tsx index a571864c16f..1819d61904a 100644 --- a/packages/remix-react/index.tsx +++ b/packages/remix-react/index.tsx @@ -40,7 +40,6 @@ export { Scripts, Link, NavLink, - RemixEntry, PrefetchPageLinks, LiveReload, useTransition, @@ -57,11 +56,7 @@ export type { ThrownResponse } from "./errors"; export { useCatch } from "./errorBoundaries"; export type { HtmlLinkDescriptor } from "./links"; -export type { - HtmlMetaDescriptor, - CatchBoundaryComponent, - RouteModules, -} from "./routeModules"; +export type { HtmlMetaDescriptor } from "./routeModules"; export { ScrollRestoration } from "./scroll-restoration"; @@ -70,6 +65,4 @@ export { RemixServer } from "./server"; export type { Fetcher } from "./transition"; -export type { AssetsManifest, EntryContext } from "./entry"; -export type { RouteData } from "./routeData"; -export type { EntryRoute, RouteManifest } from "./routes"; +export type { RouteData as UNSAFE_RouteData } from "./routeData"; diff --git a/packages/remix-testing/create-remix-stub.tsx b/packages/remix-testing/create-remix-stub.tsx index 1a43e2b80c1..31b2a1203a7 100644 --- a/packages/remix-testing/create-remix-stub.tsx +++ b/packages/remix-testing/create-remix-stub.tsx @@ -1,5 +1,5 @@ import * as React from "react"; -import type { RouteData } from "@remix-run/react"; +import type { UNSAFE_RouteData as RouteData } from "@remix-run/react"; import type { InitialEntry, Router } from "@remix-run/router"; import type { RouteObject } from "react-router-dom"; import { createMemoryRouter, RouterProvider } from "react-router-dom";