(data: any)
| 204 | } |
| 205 | |
| 206 | function serializeWithSuperJSON(data: any): any { |
| 207 | if (typeof data !== "object" || data === null) { |
| 208 | return data |
| 209 | } |
| 210 | return Object.fromEntries( |
| 211 | Object.entries(data).map(([key, value]) => [ |
| 212 | key, |
| 213 | superjson.stringify(value), |
| 214 | ]), |
| 215 | ) |
| 216 | } |
| 217 | |
| 218 | function createProxy( |
| 219 | baseClient: any, |