0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00
router/packages/react-start-client/src/index.tsx
Jon Sun d467952025
fix(react-start-client): export ServerFnResponseType type (#3605)
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.
2025-02-28 12:38:13 +01:00

75 lines
2 KiB