-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
Needs InvestigationThis issue needs a team member to investigate its status.This issue needs a team member to investigate its status.RescheduledThis issue was previously scheduled to an earlier milestoneThis issue was previously scheduled to an earlier milestone
Milestone
Description
TypeScript Version: 4.0.0-beta
Search Terms:
variadic tuples promise.all
Code
declare const foo: Promise<string>;
declare const bar: Promise<number>[];
async function m() {
const p = await Promise.all([
foo,
...bar
])
}
Expected behavior:
p
should have type [string, ...number]
Actual behavior:
Type error
Related Issues: none
tomdohnal, falkenhawk and klesun
Metadata
Metadata
Assignees
Labels
Needs InvestigationThis issue needs a team member to investigate its status.This issue needs a team member to investigate its status.RescheduledThis issue was previously scheduled to an earlier milestoneThis issue was previously scheduled to an earlier milestone