(json: string)
| 196 | } |
| 197 | |
| 198 | export async function deserializeFromJSONString(json: string) { |
| 199 | const blob = new Response(json); |
| 200 | return await deserializeJSONStream(blob); |
| 201 | } |
| 202 | |
| 203 | export async function deserializeJSONStream(response: Response | Request) { |
| 204 | if (!response.body) { |
no test coverage detected