diff --git a/src/generator/download.ts b/src/generator/download.ts index 085cb90122..8f6e7f2d55 100644 --- a/src/generator/download.ts +++ b/src/generator/download.ts @@ -66,7 +66,7 @@ export async function downloadDiscoveryDocs( : 'json'; console.log(`sending request to ${options.discoveryUrl}`); const res = await request({url: options.discoveryUrl, headers}); - const apis = (JSON.parse(res.data as string)).items as gapi.Schema[]; + const apis = (JSON.parse(res.data as string)).items as gapi.Schemas; const indexPath = path.join(options.downloadPath, 'index.json'); gfs.writeFile(indexPath, JSON.parse(res.data as string)); const queue = new Q({concurrency: 25});