diff --git a/packages/remix-server-runtime/serialize.ts b/packages/remix-server-runtime/serialize.ts index 66149b42490..5b77ae46b39 100644 --- a/packages/remix-server-runtime/serialize.ts +++ b/packages/remix-server-runtime/serialize.ts @@ -35,7 +35,7 @@ export type SerializeFrom = ( * For example: * `type LoaderData = SerializeFrom` */ -export type SerializeFromImpl = +type SerializeFromImpl = T extends (...args: any[]) => infer Output ? Serialize> : // Back compat: manually defined data type, not inferred from loader nor action Jsonify>