Skip to content

Commit d94483b

Browse files
bmsuseludabrophdawg11
authored andcommitted
feat(remix-routes-option-adapter): export DefineRouteFunction type (#13614)
1 parent 5af7d25 commit d94483b

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
@@ -51,6 +51,7 @@
5151
- BDomzalski
5252
- bhbs
5353
- bilalk711
54+
- bmsuseluda
5455
- bobziroll
5556
- bravo-kernel
5657
- 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)