Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Better typings for promise.race based on conditional types#31117

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
RyanCavanaugh merged 1 commit intomicrosoft:masterfromRyanCavanaugh:dubzzz_port
Apr 30, 2019

Conversation

@RyanCavanaugh
Copy link
Member

Following the feature - Mapped tuple types#25947 - it is now possible to have better typings for Promise.race

From@dubzzz before I messed up his fork

dubzzz and ExE-Boss reacted with heart emoji
Following the feature - Mapped tuple typesmicrosoft#25947 - it is now possible to have better typings for Promise.race
@DanielRosenwasserDanielRosenwasser changed the titleBetter typings for promise.race based on mapped tuple typesBetter typings for promise.race based on conditional typesApr 25, 2019
@DanielRosenwasser
Copy link
Member

This is thanks to conditional types, not mapped types.

It'd be nice to have a test of some sort (I'm sure we don't). Something simple like

leta=Promise.race([Promise.resolve(10),Promise.resolve("hello")]);

@dubzzz
Copy link

@DanielRosenwasser You're right. I think my first commit was really using mapped types but I changed it following reviews 🤔

@RyanCavanaugh
Copy link
MemberAuthor

@typescript-bot test this

@typescript-bot
Copy link
Collaborator

typescript-bot commentedApr 30, 2019
edited
Loading

Heya@RyanCavanaugh, I've started to run the extended test suite on this PR at7ee4e63. You can monitor the buildhere. It should now contribute to this PR's status checks.

@RyanCavanaughRyanCavanaugh self-assigned thisApr 30, 2019
@RyanCavanaughRyanCavanaugh merged commitd102ec0 intomicrosoft:masterApr 30, 2019
@RyanCavanaughRyanCavanaugh deleted the dubzzz_port branchApril 30, 2019 16:23
jablko added a commit to jablko/TypeScript that referenced this pull requestAug 23, 2019
jablko added a commit to jablko/TypeScript that referenced this pull requestAug 23, 2019
jablko added a commit to jablko/TypeScript that referenced this pull requestAug 23, 2019
jablko added a commit to jablko/TypeScript that referenced this pull requestAug 23, 2019
jablko added a commit to jablko/TypeScript that referenced this pull requestAug 23, 2019
jablko added a commit to jablko/TypeScript that referenced this pull requestAug 23, 2019
jablko added a commit to jablko/TypeScript that referenced this pull requestAug 25, 2019
jablko added a commit to jablko/TypeScript that referenced this pull requestAug 25, 2019
jablko added a commit to jablko/TypeScript that referenced this pull requestAug 25, 2019
jablko added a commit to jablko/TypeScript that referenced this pull requestAug 25, 2019
jablko added a commit to jablko/TypeScript that referenced this pull requestAug 25, 2019
jablko added a commit to jablko/TypeScript that referenced this pull requestAug 25, 2019
jablko added a commit to jablko/TypeScript that referenced this pull requestAug 27, 2019
jablko added a commit to jablko/TypeScript that referenced this pull requestAug 27, 2019
jablko added a commit to jablko/TypeScript that referenced this pull requestAug 27, 2019
jablko added a commit to jablko/TypeScript that referenced this pull requestAug 27, 2019
jablko added a commit to jablko/TypeScript that referenced this pull requestAug 27, 2019
jablko added a commit to jablko/TypeScript that referenced this pull requestAug 27, 2019
jablko added a commit to jablko/TypeScript that referenced this pull requestAug 29, 2019
jablko added a commit to jablko/TypeScript that referenced this pull requestAug 29, 2019
jablko added a commit to jablko/TypeScript that referenced this pull requestFeb 12, 2020
jablko added a commit to jablko/TypeScript that referenced this pull requestFeb 12, 2020
jablko added a commit to jablko/TypeScript that referenced this pull requestFeb 13, 2020
jablko added a commit to jablko/TypeScript that referenced this pull requestFeb 13, 2020
You can include es2015.promise.d.ts without es2015.iterable.d.ts. It wasmoved to es2015.promise.d.ts inmicrosoft#31117
jablko added a commit to jablko/TypeScript that referenced this pull requestFeb 13, 2020
jablko added a commit to jablko/TypeScript that referenced this pull requestFeb 13, 2020
jablko added a commit to jablko/TypeScript that referenced this pull requestFeb 13, 2020
You can include es2015.promise.d.ts without es2015.iterable.d.ts. It wasmoved to es2015.promise.d.ts inmicrosoft#31117
jablko added a commit to jablko/TypeScript that referenced this pull requestFeb 13, 2020
You can include es2015.promise.d.ts without es2015.iterable.d.ts. It wasmoved to es2015.promise.d.ts inmicrosoft#31117
jablko added a commit to jablko/TypeScript that referenced this pull requestFeb 13, 2020
jablko added a commit to jablko/TypeScript that referenced this pull requestFeb 21, 2020
jablko added a commit to jablko/TypeScript that referenced this pull requestFeb 21, 2020
jablko added a commit to jablko/TypeScript that referenced this pull requestFeb 21, 2020
You can include es2015.promise.d.ts without es2015.iterable.d.ts. It wasmoved to es2015.promise.d.ts inmicrosoft#31117
jablko added a commit to jablko/TypeScript that referenced this pull requestFeb 21, 2020
jablko added a commit to jablko/TypeScript that referenced this pull requestFeb 21, 2020
You can include es2015.promise.d.ts without es2015.iterable.d.ts. It wasmoved to es2015.promise.d.ts inmicrosoft#31117
jablko added a commit to jablko/TypeScript that referenced this pull requestFeb 21, 2020
jablko added a commit to jablko/TypeScript that referenced this pull requestFeb 21, 2020
You can include es2015.promise.d.ts without es2015.iterable.d.ts. It wasmoved to es2015.promise.d.ts inmicrosoft#31117
jablko added a commit to jablko/TypeScript that referenced this pull requestFeb 22, 2020
You can include es2015.promise.d.ts without es2015.iterable.d.ts. It wasmoved to es2015.promise.d.ts inmicrosoft#31117
jablko added a commit to jablko/TypeScript that referenced this pull requestFeb 22, 2020
jablko added a commit to jablko/TypeScript that referenced this pull requestFeb 22, 2020
jablko added a commit to jablko/TypeScript that referenced this pull requestFeb 22, 2020
You can include es2015.promise.d.ts without es2015.iterable.d.ts. It wasmoved to es2015.promise.d.ts inmicrosoft#31117
jablko added a commit to jablko/TypeScript that referenced this pull requestFeb 22, 2020
You can include es2015.promise.d.ts without es2015.iterable.d.ts. It wasmoved to es2015.promise.d.ts inmicrosoft#31117
jablko added a commit to jablko/TypeScript that referenced this pull requestFeb 22, 2020
jablko added a commit to jablko/TypeScript that referenced this pull requestFeb 22, 2020
rbuckton pushed a commit to jablko/TypeScript that referenced this pull requestMar 18, 2022
rbuckton added a commit that referenced this pull requestAug 2, 2022
* Better typings for Promise.resolve(), like#31117* Add tests* Update to Awaited<T>* Fix issue with Awaited affecting jQuery, additional testsCo-authored-by: Ron Buckton <ron.buckton@microsoft.com>
sandersn added a commit that referenced this pull requestAug 8, 2022
typescript-bot pushed a commit to typescript-bot/TypeScript that referenced this pull requestAug 9, 2022
Component commits:c28ee65 Revert "Better typings for Promise.resolve(), likemicrosoft#31117 (microsoft#33074)"This reverts commit040c121.
typescript-bot pushed a commit to typescript-bot/TypeScript that referenced this pull requestAug 11, 2022
Component commits:c28ee65 Revert "Better typings for Promise.resolve(), likemicrosoft#31117 (microsoft#33074)"This reverts commit040c121.Co-authored-by: Nathan Shively-Sanders <nathansa@microsoft.com>
@microsoftmicrosoft locked asresolvedand limited conversation to collaboratorsOct 21, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

No reviews

Assignees

@RyanCavanaughRyanCavanaugh

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants

@RyanCavanaugh@DanielRosenwasser@dubzzz@typescript-bot@buu700

[8]ページ先頭

©2009-2025 Movatter.jp