diff --git a/packages/react-router/lib/dom/ssr/routeModules.ts b/packages/react-router/lib/dom/ssr/routeModules.ts index 8e88830fe9..fa70b57e86 100644 --- a/packages/react-router/lib/dom/ssr/routeModules.ts +++ b/packages/react-router/lib/dom/ssr/routeModules.ts @@ -33,8 +33,6 @@ export interface RouteModule { /** * A function that handles data mutations for a route on the client - * - * @deprecated Use `Route.ClientActionArgs` from generated `+types.` */ export type ClientActionFunction = ( args: ClientActionFunctionArgs @@ -42,8 +40,6 @@ export type ClientActionFunction = ( /** * Arguments passed to a route `clientAction` function - * - * @deprecated Use `Route.ClientActionArgs` from generated `+types.` */ export type ClientActionFunctionArgs = ActionFunctionArgs & { serverAction: () => Promise>; @@ -51,8 +47,6 @@ export type ClientActionFunctionArgs = ActionFunctionArgs & { /** * A function that loads data for a route on the client - * - * @deprecated Use `Route.ClientLoaderArgs` from generated `+types.` */ export type ClientLoaderFunction = (( args: ClientLoaderFunctionArgs @@ -62,8 +56,6 @@ export type ClientLoaderFunction = (( /** * Arguments passed to a route `clientLoader` function - * - * @deprecated Use `Route.ClientLoaderArgs` from generated `+types.` */ export type ClientLoaderFunctionArgs = LoaderFunctionArgs & { serverLoader: () => Promise>; @@ -96,8 +88,6 @@ export type LayoutComponent = ComponentType<{ * A function that defines `` tags to be inserted into the `` of * the document on route transitions. * - * @deprecated Use `Route.LinksFunction` from generated `+types.` - * * @see https://remix.run/route/meta */ export interface LinksFunction { @@ -119,9 +109,6 @@ export interface MetaMatch< error?: unknown; } -/** - * @deprecated Use `{ matches }` from `Route.MetaArgs` from generated `+types.` - */ export type MetaMatches< MatchLoaders extends Record< string, @@ -136,9 +123,6 @@ export type MetaMatches< }[keyof MatchLoaders] >; -/** - * @deprecated Use `Route.MetaArgs` from generated `+types.` - */ export interface MetaArgs< Loader extends LoaderFunction | ClientLoaderFunction | unknown = unknown, MatchLoaders extends Record< @@ -163,8 +147,6 @@ export interface MetaArgs< * routes in the route hierarchy. In other words, they will only be rendered on * the route in which they are exported. * - * @deprecated Use `Route.MetaFunction` from generated `+types.` - * * @param Loader - The type of the current route's loader function * @param MatchLoaders - Mapping from a parent route's filepath to its loader * function type