Skip to content

Commit

Permalink
chore: rename non public exports
Browse files Browse the repository at this point in the history
Signed-off-by: Logan McAnsh <logan@mcan.sh>
  • Loading branch information
mcansh committed Dec 16, 2022
1 parent 90a1634 commit f671555
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
1 change: 0 additions & 1 deletion packages/remix-react/components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,6 @@ function Routes() {
// loader argument. But since we're just using <Router> we aren't using any
// loaders in RR so this isn't an issue. We'll get these typings straightened
// out as part of the rendering work.
// @ts-expect-error
let element = useRoutes(clientRoutes) || (clientRoutes[0].element as any);
return element;
}
Expand Down
16 changes: 11 additions & 5 deletions packages/remix-react/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export {
Link,
NavLink,
Form,
RemixEntry,
RemixEntry as UNSAFE_RemixEntry,
PrefetchPageLinks,
LiveReload,
useFormAction,
Expand All @@ -58,8 +58,8 @@ export type { HtmlLinkDescriptor } from "./links";
export type {
ShouldReloadFunction,
HtmlMetaDescriptor,
CatchBoundaryComponent,
RouteModules,
CatchBoundaryComponent as UNSAFE_CatchBoundaryComponent,
RouteModules as UNSAFE_RouteModules,
} from "./routeModules";

export { ScrollRestoration } from "./scroll-restoration";
Expand All @@ -69,6 +69,12 @@ export { RemixServer } from "./server";

export type { Fetcher } from "./transition";

export type { AssetsManifest, EntryContext } from "./entry";
export type {
AssetsManifest as UNSAFE_AssetsManifest,
EntryContext as UNSAFE_EntryContext,
} from "./entry";
export type { RouteData } from "./routeData";
export type { EntryRoute, RouteManifest } from "./routes";
export type {
EntryRoute as UNSAFE_EntryRoute,
RouteManifest as UNSAFE_RouteManifest,
} from "./routes";
12 changes: 6 additions & 6 deletions packages/remix-testing/create-remix-stub.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import * as React from "react";
import type {
AssetsManifest,
EntryContext,
EntryRoute,
UNSAFE_AssetsManifest as AssetsManifest,
UNSAFE_EntryContext as EntryContext,
UNSAFE_EntryRoute as EntryRoute,
RouteData,
RouteManifest,
RouteModules,
UNSAFE_RouteManifest as RouteManifest,
UNSAFE_RouteModules as RouteModules,
} from "@remix-run/react";
import { RemixEntry } from "@remix-run/react";
import { UNSAFE_RemixEntry as RemixEntry } from "@remix-run/react";
import type {
Action,
AgnosticDataRouteObject,
Expand Down

0 comments on commit f671555

Please sign in to comment.