Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/brave-buttons-build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@react-router/remix-routes-option-adapter": patch
---

chore: export `DefineRouteFunction` type from remix adapter
1 change: 1 addition & 0 deletions contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
- BDomzalski
- bhbs
- bilalk711
- bmsuseluda
- bobziroll
- bravo-kernel
- Brendonovich
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ interface DefineRouteChildren {
(): void;
}

interface DefineRouteFunction {
export interface DefineRouteFunction {
(
/**
* The path this route uses to match the URL pathname.
Expand Down
4 changes: 2 additions & 2 deletions packages/react-router-remix-routes-option-adapter/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { type RouteConfigEntry } from "@react-router/dev/routes";

import { routeManifestToRouteConfig } from "./manifest";
import { defineRoutes, type DefineRoutesFunction } from "./defineRoutes";
import { defineRoutes, type DefineRoutesFunction, type DefineRouteFunction } from "./defineRoutes";

export type { DefineRoutesFunction };
export type { DefineRoutesFunction, DefineRouteFunction };

/**
* Adapts routes defined using [Remix's `routes` config
Expand Down