Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetch web api descriptions from MDN #625

Merged
merged 1 commit into from
Jan 18, 2019

Conversation

jwbay
Copy link
Contributor

@jwbay jwbay commented Dec 2, 2018

Ref: microsoft/TypeScript#26404

Add a script to fetch summary descriptions of interfaces from MDN, and add the resulting file as an input for emit.


await interfaceNames.reduce(async (previousRequest, name) => {
// Issuing too many requests in parallel causes 504 gateway errors, so chain
await previousRequest;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not just make this whole thing synchronous then? (Probably because node-fetch is 500x more popular than the nearest synchronous package)

Copy link
Member

@sandersn sandersn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small question, but this looks so good that I am going to merge it as-is.

@sandersn sandersn merged commit f197190 into microsoft:master Jan 18, 2019
saschanaz added a commit to saschanaz/types-web that referenced this pull request Jan 29, 2019
@jwbay jwbay deleted the api-descriptions-from-mdn branch February 2, 2019 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants