We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a45eb46 commit c4a4e05Copy full SHA for c4a4e05
src/common/types.ts
@@ -234,6 +234,11 @@ export type InvariantRoute = {
234
query?: string[];
235
};
236
237
+/**
238
+ * Custom additional attributes that may be present in each route definition.
239
+ */
240
+interface AdditionalRouteAttributes {}
241
+
242
export type Route = InvariantRoute & {
243
/** The component to render on match, typed explicitly */
244
component: ComponentType<RouteContext>;
@@ -242,7 +247,7 @@ export type Route = InvariantRoute & {
247
* The resources for the route
248
*/
249
resources?: RouteResources;
245
-};
250
+} & AdditionalRouteAttributes;
246
251
252
export type HistoryAction = 'PUSH' | 'REPLACE' | 'POP' | '';
253
0 commit comments