Skip to content

Commit

Permalink
fix single-fetch types: correctly check for arbitrary functions (#9925)
Browse files Browse the repository at this point in the history
  • Loading branch information
pcattori authored Aug 30, 2024
1 parent 87240b0 commit 5d4eaf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/remix-server-runtime/serialize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type SingleFetchEnabled =
*/
export type SerializeFrom<T> =
SingleFetchEnabled extends true ?
T extends (...args: []) => unknown ?
T extends (...args: any[]) => unknown ?
SingleFetch_SerializeFrom<T> :
never
:
Expand Down

0 comments on commit 5d4eaf7

Please sign in to comment.