You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
check-test-types fails repo-wide on main: test/scripts/release-candidate-checklist.test.ts gets TS2305 because scripts/release-candidate-checklist.d.mts no longer declares isDirectReleaseCandidateExecution at all.
Why This Change Was Made
Two parallel fixes each removed one of the two duplicate declarations: #109553 (082ffd4) and #109560 (69b2916). Merged together they removed both copies. The second merge was not caught because prepare reused a patch-identical pre-rebase CI run, which masked the semantic conflict. This PR restores exactly one documented declaration matching the .mjs implementation signature.
User Impact
Unblocks check-test-types / ci-gate for all open PRs; declarations-only change, no runtime behavior.
Evidence
pnpm tsgo:test (full test-types lane): green with the restored declaration.
node scripts/run-oxlint.mjs scripts/release-candidate-checklist.d.mts: zero findings (exactly one declaration, no adjacent-overload issue).
Superseded: current main regained exactly one isDirectReleaseCandidateExecution declaration (line 93 of scripts/release-candidate-checklist.d.mts, via the #101826 merge at 09575bd), so check-test-types is unblocked. Landing this PR now would re-introduce the duplicate-declaration lint failure that #109553/#109560 just cleaned up. Closing without merge.
Heads-up: this merge raced the #101826 merge (which had independently restored the declaration), so main now has the duplicate again (lines 78/101) and check-lint is failing. Canonical cleanup: #109606 removes the second copy, leaving exactly one declaration. Full race chain for context: #109546 introduced the duplicate → #109553 + #109560 removed one copy each in parallel (zero left, check-test-types broke) → #101826 + this PR restored one copy each in parallel (two left, check-lint broke).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
check-test-typesfails repo-wide onmain:test/scripts/release-candidate-checklist.test.tsgets TS2305 becausescripts/release-candidate-checklist.d.mtsno longer declaresisDirectReleaseCandidateExecutionat all.Why This Change Was Made
Two parallel fixes each removed one of the two duplicate declarations: #109553 (082ffd4) and #109560 (69b2916). Merged together they removed both copies. The second merge was not caught because prepare reused a patch-identical pre-rebase CI run, which masked the semantic conflict. This PR restores exactly one documented declaration matching the
.mjsimplementation signature.User Impact
Unblocks
check-test-types/ci-gatefor all open PRs; declarations-only change, no runtime behavior.Evidence
pnpm tsgo:test(full test-types lane): green with the restored declaration.node scripts/run-oxlint.mjs scripts/release-candidate-checklist.d.mts: zero findings (exactly one declaration, no adjacent-overload issue).node scripts/run-vitest.mjs test/scripts/release-candidate-checklist.test.ts: pass.