Skip to content

Commit

Permalink
Update download.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
sofisl authored Jul 17, 2024
1 parent cce6183 commit 5d8c2d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generator/download.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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});
Expand Down

0 comments on commit 5d8c2d8

Please sign in to comment.