Skip to content

Commit 026f50c

Browse files
committed
Rename InferRequestHandler => BuildRequestHandler
1 parent 39163c6 commit 026f50c

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

packages/fetch-router/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ This is the changelog for [`fetch-router`](https://github.com/remix-run/remix/tr
2424
createRedirectResponse(location, status)
2525
```
2626

27+
- BREAKING CHANGE: Rename `InferRequestHandler` => `BuildRequestHandler`
2728
- Add `exclude` option to `resource()` and `resources()` route map helpers (#10858)
2829

2930
## v0.11.0 (2025-11-21)

packages/fetch-router/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export { RequestContext } from './lib/request-context.ts'
1313
export { RequestMethods } from './lib/request-methods.ts'
1414
export type { RequestMethod } from './lib/request-methods.ts'
1515

16-
export type { RequestHandler, InferRequestHandler } from './lib/request-handler.ts'
16+
export type { RequestHandler, BuildRequestHandler } from './lib/request-handler.ts'
1717

1818
export {
1919
createResource,

packages/fetch-router/src/lib/request-handler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ export interface RequestHandler<
1616
}
1717

1818
/**
19-
* Infer the request handler type from a route or string.
19+
* Build a `RequestHandler` type from a route or string.
2020
*/
2121
// prettier-ignore
22-
export type InferRequestHandler<T extends Route | string> =
22+
export type BuildRequestHandler<T extends Route | string> =
2323
T extends Route<infer method extends RequestMethod | 'ANY', infer pattern extends string> ? RequestHandler<method, Params<pattern>> :
2424
T extends string ? RequestHandler<'ANY', Params<T>> :
2525
never

0 commit comments

Comments
 (0)