Repository navigation
Parameters created from tuple are treated as mutable instead of immutable, unless written as "...args" #53255
Copy link
Copy link
Open
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: check: Type InferenceRelated to type inference performed during signature resolution or `infer` type resolutionRelated to type inference performed during signature resolution or `infer` type resolutionRescheduledThis issue was previously scheduled to an earlier milestoneThis issue was previously scheduled to an earlier milestone
Milestone
Description
Activity
- addedFix AvailableA PR has been opened for this issueA PR has been opened for this issue
on Mar 14, 2023 jakebailey commented
on Mar 20, 2023 MemberAuthorMore actionsFollowup is here: #53398
- added a commit that references this issue
on Mar 23, 2023 jakebailey commented
on Mar 23, 2023 MemberAuthorMore actionsFix has been reverted.
- removedFix AvailableA PR has been opened for this issueA PR has been opened for this issue
on May 4, 2023 will there ever be a fix for this issue or has it been abandoned?
jakebailey commented
on Sep 18, 2023 MemberAuthorMore actionsNo, I just haven't come up with a fix for it, and have been working on other issues.
Reacted by Moritz Jung and Markus Nüssler- addedFix AvailableA PR has been opened for this issueA PR has been opened for this issue
on Sep 20, 2023 - removedFix AvailableA PR has been opened for this issueA PR has been opened for this issue
on Dec 14, 2023 - addedRescheduledThis issue was previously scheduled to an earlier milestoneThis issue was previously scheduled to an earlier milestone
on Mar 4, 2024 - addedDomain: check: Type InferenceRelated to type inference performed during signature resolution or `infer` type resolutionRelated to type inference performed during signature resolution or `infer` type resolution
on Oct 16, 2025 - added a commit that references this issue
on Aug 25, 2026
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: check: Type InferenceRelated to type inference performed during signature resolution or `infer` type resolutionRelated to type inference performed during signature resolution or `infer` type resolutionRescheduledThis issue was previously scheduled to an earlier milestoneThis issue was previously scheduled to an earlier milestone
Bug Report
🔎 Search Terms
const array tuple parameter spread
🕗 Version & Regression Information
⏯ Playground Link
Playground Link
💻 Code
🙁 Actual behavior
Obviously they're not assignable, but why did we come up with
[a: 1 | 2, b: "1" | "2"]and notreadonly [a: 1 | 2, b: "1" | "2"]?🙂 Expected behavior
No error, as though it had been expanded separately.
See also: DefinitelyTyped/DefinitelyTyped#64739