Skip to content

Add Fetch standard types #420

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

Merged
merged 7 commits into from
Apr 10, 2018
Merged

Add Fetch standard types #420

merged 7 commits into from
Apr 10, 2018

Conversation

saschanaz
Copy link
Contributor

Adds Response.trailer, fixes BodyInit, etc.

src/emitter.ts Outdated
}
else if (type.name === "record" && Array.isArray(subtypeString)) {
name = `{ [key: ${subtypeString[0]}]: ${subtypeString[1]} }`
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Index signature is not the correct type here. It only works for number and string. I think you want ‘Record’ instead

Copy link
Contributor

Choose a reason for hiding this comment

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

though Record<string, string> is just { [key:string]: string }, but Record is preferred in this context.

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