Skip to content

Commit 0bc22f0

Browse files
feat(remix-routes-option-adapter): export DefineRouteFunction type (#13614) (#13945)
Co-authored-by: bmsuseluda <[email protected]>
1 parent 0b29d5a commit 0bc22f0

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

.changeset/brave-buttons-build.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@react-router/remix-routes-option-adapter": minor
3+
---
4+
5+
Export `DefineRouteFunction` type alongside `DefineRoutesFunction`

contributors.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
- BDomzalski
5353
- bhbs
5454
- bilalk711
55+
- bmsuseluda
5556
- bobziroll
5657
- bravo-kernel
5758
- Brendonovich

packages/react-router-remix-routes-option-adapter/defineRoutes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ interface DefineRouteChildren {
2828
(): void;
2929
}
3030

31-
interface DefineRouteFunction {
31+
export interface DefineRouteFunction {
3232
(
3333
/**
3434
* The path this route uses to match the URL pathname.

packages/react-router-remix-routes-option-adapter/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { type RouteConfigEntry } from "@react-router/dev/routes";
22

33
import { routeManifestToRouteConfig } from "./manifest";
4-
import { defineRoutes, type DefineRoutesFunction } from "./defineRoutes";
4+
import { defineRoutes, type DefineRoutesFunction, type DefineRouteFunction } from "./defineRoutes";
55

6-
export type { DefineRoutesFunction };
6+
export type { DefineRoutesFunction, DefineRouteFunction };
77

88
/**
99
* Adapts routes defined using [Remix's `routes` config

0 commit comments

Comments
 (0)