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
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.
History 2025-02-28 12:38:13 +01:00
..
tests feat(start): allow to return raw response from server function (#3532) 2025-02-27 23:54:08 +01:00
createIsomorphicFn.ts refactor(react-start): move start packages to react-start (#3563) 2025-02-25 22:05:25 +01:00
createMiddleware.ts feat(start): allow to return raw response from server function (#3532) 2025-02-27 23:54:08 +01:00
createServerFn.ts feat(start): allow to return raw response from server function (#3532) 2025-02-27 23:54:08 +01:00
envOnly.ts refactor(react-start): move start packages to react-start (#3563) 2025-02-25 22:05:25 +01:00
headers.ts refactor(react-start): move start packages to react-start (#3563) 2025-02-25 22:05:25 +01:00
index.tsx fix(react-start-client): export ServerFnResponseType type (#3605) 2025-02-28 12:38:13 +01:00
json.ts refactor(react-start): move start packages to react-start (#3563) 2025-02-25 22:05:25 +01:00
Meta.tsx refactor(react-start): move start packages to react-start (#3563) 2025-02-25 22:05:25 +01:00
registerGlobalMiddleware.ts refactor(react-start): move start packages to react-start (#3563) 2025-02-25 22:05:25 +01:00
renderRSC.tsx refactor(react-start): move start packages to react-start (#3563) 2025-02-25 22:05:25 +01:00
routesManifest.ts refactor(react-start): move start packages to react-start (#3563) 2025-02-25 22:05:25 +01:00
Scripts.tsx refactor(react-start): move start packages to react-start (#3563) 2025-02-25 22:05:25 +01:00
serializer.ts refactor(react-start): move start packages to react-start (#3563) 2025-02-25 22:05:25 +01:00
ssr-client.tsx fix(react-start-client): execute head and scripts after custom hydration (#3594) 2025-02-27 22:31:34 +01:00
StartClient.tsx refactor(react-start): move start packages to react-start (#3563) 2025-02-25 22:05:25 +01:00
useServerFn.ts refactor(react-start): move start packages to react-start (#3563) 2025-02-25 22:05:25 +01:00