( client: Client, specUrl?: string )
| 95 | } |
| 96 | |
| 97 | export function createOpenApiCache( |
| 98 | client: Client, |
| 99 | specUrl?: string |
| 100 | ): OpenApiCache { |
| 101 | return new OpenApiCache( |
| 102 | specUrl |
| 103 | ? { |
| 104 | specUrl, |
| 105 | fetchSpecUrl: url => fetchSpecUrl(client, url), |
| 106 | } |
| 107 | : undefined |
| 108 | ); |
| 109 | } |
| 110 | |
| 111 | async function fetchWithTimeout( |
| 112 | url: string, |
no test coverage detected