(input: Response)
| 377 | * ``` |
| 378 | */ |
| 379 | export async function parseProblemDetailsResponse< |
| 380 | T extends ProblemDetailsExtensions = Record<string, never>, |
| 381 | >(input: Response): Promise<ProblemDetails<T>> { |
| 382 | const raw = await input.json(); |
| 383 | return normalizeParsedProblemDetails(raw) as ProblemDetails<T>; |
| 384 | } |
| 385 | |
| 386 | /** |
| 387 | * Type guard that checks whether a `Response` has an |
no test coverage detected