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.