Skip to content

Commit

Permalink
RELEASE: fix single fetch generic as cast (again) (#9957)
Browse files Browse the repository at this point in the history
  • Loading branch information
pcattori authored Sep 6, 2024
1 parent caea77d commit b66a4b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/light-moons-reply.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"remix": patch
---

REMOVE: bump prerelease
6 changes: 1 addition & 5 deletions packages/remix-server-runtime/serialize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,7 @@ type SingleFetchEnabled =
* `type LoaderData = SerializeFrom<typeof loader>`
*/
export type SerializeFrom<T> =
SingleFetchEnabled extends true ?
T extends (...args: any[]) => unknown ?
SingleFetch_SerializeFrom<T> :
never
:
SingleFetchEnabled extends true ? SingleFetch_SerializeFrom<T> :
T extends (...args: any[]) => infer Output ?
Parameters<T> extends [ClientLoaderFunctionArgs | ClientActionFunctionArgs] ?
// Client data functions may not serialize
Expand Down

0 comments on commit b66a4b9

Please sign in to comment.