Skip to content

Commit b0e037f

Browse files
authored
un-deprecate types for library mode (#12309)
1 parent e9969f1 commit b0e037f

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

packages/react-router/lib/dom/ssr/routeModules.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -33,26 +33,20 @@ export interface RouteModule {
3333

3434
/**
3535
* A function that handles data mutations for a route on the client
36-
*
37-
* @deprecated Use `Route.ClientActionArgs` from generated `+types.<route>`
3836
*/
3937
export type ClientActionFunction = (
4038
args: ClientActionFunctionArgs
4139
) => ReturnType<ActionFunction>;
4240

4341
/**
4442
* Arguments passed to a route `clientAction` function
45-
*
46-
* @deprecated Use `Route.ClientActionArgs` from generated `+types.<route>`
4743
*/
4844
export type ClientActionFunctionArgs = ActionFunctionArgs<undefined> & {
4945
serverAction: <T = unknown>() => Promise<SerializeFrom<T>>;
5046
};
5147

5248
/**
5349
* A function that loads data for a route on the client
54-
*
55-
* @deprecated Use `Route.ClientLoaderArgs` from generated `+types.<route>`
5650
*/
5751
export type ClientLoaderFunction = ((
5852
args: ClientLoaderFunctionArgs
@@ -62,8 +56,6 @@ export type ClientLoaderFunction = ((
6256

6357
/**
6458
* Arguments passed to a route `clientLoader` function
65-
*
66-
* @deprecated Use `Route.ClientLoaderArgs` from generated `+types.<route>`
6759
*/
6860
export type ClientLoaderFunctionArgs = LoaderFunctionArgs<undefined> & {
6961
serverLoader: <T = unknown>() => Promise<SerializeFrom<T>>;
@@ -96,8 +88,6 @@ export type LayoutComponent = ComponentType<{
9688
* A function that defines `<link>` tags to be inserted into the `<head>` of
9789
* the document on route transitions.
9890
*
99-
* @deprecated Use `Route.LinksFunction` from generated `+types.<route>`
100-
*
10191
* @see https://remix.run/route/meta
10292
*/
10393
export interface LinksFunction {
@@ -119,9 +109,6 @@ export interface MetaMatch<
119109
error?: unknown;
120110
}
121111

122-
/**
123-
* @deprecated Use `{ matches }` from `Route.MetaArgs` from generated `+types.<route>`
124-
*/
125112
export type MetaMatches<
126113
MatchLoaders extends Record<
127114
string,
@@ -136,9 +123,6 @@ export type MetaMatches<
136123
}[keyof MatchLoaders]
137124
>;
138125

139-
/**
140-
* @deprecated Use `Route.MetaArgs` from generated `+types.<route>`
141-
*/
142126
export interface MetaArgs<
143127
Loader extends LoaderFunction | ClientLoaderFunction | unknown = unknown,
144128
MatchLoaders extends Record<
@@ -163,8 +147,6 @@ export interface MetaArgs<
163147
* routes in the route hierarchy. In other words, they will only be rendered on
164148
* the route in which they are exported.
165149
*
166-
* @deprecated Use `Route.MetaFunction` from generated `+types.<route>`
167-
*
168150
* @param Loader - The type of the current route's loader function
169151
* @param MatchLoaders - Mapping from a parent route's filepath to its loader
170152
* function type

0 commit comments

Comments
 (0)