@@ -33,26 +33,20 @@ export interface RouteModule {
33
33
34
34
/**
35
35
* A function that handles data mutations for a route on the client
36
- *
37
- * @deprecated Use `Route.ClientActionArgs` from generated `+types.<route>`
38
36
*/
39
37
export type ClientActionFunction = (
40
38
args : ClientActionFunctionArgs
41
39
) => ReturnType < ActionFunction > ;
42
40
43
41
/**
44
42
* Arguments passed to a route `clientAction` function
45
- *
46
- * @deprecated Use `Route.ClientActionArgs` from generated `+types.<route>`
47
43
*/
48
44
export type ClientActionFunctionArgs = ActionFunctionArgs < undefined > & {
49
45
serverAction : < T = unknown > ( ) => Promise < SerializeFrom < T > > ;
50
46
} ;
51
47
52
48
/**
53
49
* A function that loads data for a route on the client
54
- *
55
- * @deprecated Use `Route.ClientLoaderArgs` from generated `+types.<route>`
56
50
*/
57
51
export type ClientLoaderFunction = ( (
58
52
args : ClientLoaderFunctionArgs
@@ -62,8 +56,6 @@ export type ClientLoaderFunction = ((
62
56
63
57
/**
64
58
* Arguments passed to a route `clientLoader` function
65
- *
66
- * @deprecated Use `Route.ClientLoaderArgs` from generated `+types.<route>`
67
59
*/
68
60
export type ClientLoaderFunctionArgs = LoaderFunctionArgs < undefined > & {
69
61
serverLoader : < T = unknown > ( ) => Promise < SerializeFrom < T > > ;
@@ -96,8 +88,6 @@ export type LayoutComponent = ComponentType<{
96
88
* A function that defines `<link>` tags to be inserted into the `<head>` of
97
89
* the document on route transitions.
98
90
*
99
- * @deprecated Use `Route.LinksFunction` from generated `+types.<route>`
100
- *
101
91
* @see https://remix.run/route/meta
102
92
*/
103
93
export interface LinksFunction {
@@ -119,9 +109,6 @@ export interface MetaMatch<
119
109
error ?: unknown ;
120
110
}
121
111
122
- /**
123
- * @deprecated Use `{ matches }` from `Route.MetaArgs` from generated `+types.<route>`
124
- */
125
112
export type MetaMatches <
126
113
MatchLoaders extends Record <
127
114
string ,
@@ -136,9 +123,6 @@ export type MetaMatches<
136
123
} [ keyof MatchLoaders ]
137
124
> ;
138
125
139
- /**
140
- * @deprecated Use `Route.MetaArgs` from generated `+types.<route>`
141
- */
142
126
export interface MetaArgs <
143
127
Loader extends LoaderFunction | ClientLoaderFunction | unknown = unknown ,
144
128
MatchLoaders extends Record <
@@ -163,8 +147,6 @@ export interface MetaArgs<
163
147
* routes in the route hierarchy. In other words, they will only be rendered on
164
148
* the route in which they are exported.
165
149
*
166
- * @deprecated Use `Route.MetaFunction` from generated `+types.<route>`
167
- *
168
150
* @param Loader - The type of the current route's loader function
169
151
* @param MatchLoaders - Mapping from a parent route's filepath to its loader
170
152
* function type
0 commit comments