mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
Example
```
import { createMiddleware } from "@tanstack/react-start";
export const middleware = createMiddleware();
```
Issue
```
The inferred type of middleware cannot be named without a reference to ../../../../node_modules/@tanstack/react-start-client/dist/esm/createServerFn . This is likely not portable. A type annotation is necessary.
```
Solution
exporting `ServerFnResponseType` resolves this.
75 lines
2 KiB
75 lines
2 KiB