There was an error while loading. Please reload this page.
createSingleRouteHandler
1 parent 7792ef7 commit b56a97dCopy full SHA for b56a97d
2 files changed
.changeset/gold-moles-sell.md
@@ -0,0 +1,5 @@
1
+---
2
+'@ts-rest/next': patch
3
4
+
5
+Fix type inference for `createSingleRouteHandler`
libs/ts-rest/next/src/lib/ts-rest-next.ts
@@ -231,13 +231,9 @@ export const createNextRouter = <T extends AppRouter>(
231
* ```typescript
232
* export default createNextRouter(contract, implementationHandler);
233
* ```
234
- *
235
- * @param appRoute
236
- * @param options
237
- * @returns
238
*/
239
export function createSingleRouteHandler<T extends AppRoute>(
240
- appRoute: AppRoute,
+ appRoute: T,
241
implementationHandler: AppRouteImplementation<T>,
242
options?: CreateNextRouterOptions,
243
) {
0 commit comments