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

Add promiseWithResolvers shim #203826

Merged
merged 1 commit into from Jan 30, 2024
Merged

Add promiseWithResolvers shim #203826

merged 1 commit into from Jan 30, 2024

Conversation

mjbvz
Copy link
Contributor

@mjbvz mjbvz commented Jan 30, 2024

Adds a shim for Promise.withResolvers. This is slightly reduces lines of code. More importantly it plays more nicely with TypeScript's type checking and lets us mark more vars const and properties readonly

Adds a shim for `Promise.withResolvers`. This is slightly reduces lines of code. More importantly it plays more nicely with TypeScript's type checking and lets us mark more vars const and properties readonly
@mjbvz mjbvz self-assigned this Jan 30, 2024
@mjbvz mjbvz enabled auto-merge (squash) January 30, 2024 18:40
@VSCodeTriageBot VSCodeTriageBot added this to the February 2024 milestone Jan 30, 2024
@mjbvz mjbvz merged commit ab5dd70 into microsoft:main Jan 30, 2024
6 checks passed
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.

None yet

3 participants