Repository navigation
Conversation
Port microsoft/TypeScript#65556, which reverts padObjectLiteralType to add only initialized binding elements to a default object literal's type. Apply the upstream checker and fixture changes to the pinned reference checkout until the TypeScript pin includes them. Upstream-Commit: e1ae04d264bf5256cc4818a7d2aae123693e8f7f
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Merging this PR will not alter performance1 warning
Comparing Footnotes
|
Performance change vs mainWorkflow run · main Clef gate: Running benchmarks because the decision was unavailable (tools/typescript-backports/3e9236361fa97a9e6c685f4833ac457ae2d8c50a/65556.patch: patch exceeds the Clef context limit (65380 bytes)). Release builds in fast mode (TSRS_FAST=1) with Hyperfine 2 hardware counters. After warming each binary, alternating main/PR pairs measure wall time at both the fast preset's default checker count and with --singleThreaded, with ten pairs per configuration by default. Instructions come from the single-threaded runs; peak RSS comes from the default-count runs.
Negative means the PR used less; positive means it used more. Deltas are medians of paired PR/main ratios for wall time and instructions. Single-threaded runs reduce scheduling noise; shared CI machines can still add noise to wall time. Measured medians (main → PR)
tsrs-lintRelease
Negative means the PR used less. Wall and CPU time deltas are medians of paired PR/main ratios; peak RSS compares medians. Measured lint medians (main → PR)
|
|
This is the wrong approach. |
microsoft/TypeScript#64043 made
padObjectLiteralTypeadd every binding element missing from a default object literal, with an implicit-anytype. That made a contextually typed destructuring default report TS7031. Upstream reverted it in microsoft/TypeScript#65556, which landed after our pin (3e9236361fa9).Before:
error TS7031: Binding element 'actions' implicitly has an 'any' type.After: no errors, matching TypeScript after #65556.
Without a contextual type,
function f({ a, b = 1 } = {})again reports TS2339 forainstead of TS7031.Details
tools/typescript-backports/<pin>/65556.patchcarries the upstream checker and fixture changes. CI and release workflows apply it after checking outts-ref, so conformance and source-built oracles use the fixed reference. Patches for another pin are ignored; this one should be deleted once the pin includes #65556.next-packages-nextandsupabase-studio.Fixes #1019