Skip to content

Use narrower types for setInterval and setTimeout #810

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

Closed
wants to merge 2 commits into from

Conversation

Xenxes
Copy link

@Xenxes Xenxes commented Dec 5, 2019

Infer specific types for arguments instead of using any[]

@msftclas
Copy link

msftclas commented Dec 5, 2019

CLA assistant check
All CLA requirements met.

@orta
Copy link
Contributor

orta commented Mar 4, 2020

Hey @XenProject - thanks for this PR, we'd like to try keep these dom types as simple as possible unless there is a very large advantage for everyone and I don't think these changes pay for themselves in the extra perf hits.

@orta orta closed this Mar 4, 2020
@ghost
Copy link

ghost commented Mar 4, 2020

@orta with all due respect, do you not consider these functions being type-safe "a large advantage"? Right now, TS happily allows this code to compile: playground link.

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.

3 participants