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
Refactors createDeferred to use definite assignment assertions (!) for resolve and reject, completely eliminating the need for @ts-ignore comments.
Because the Promise executor runs synchronously, resolve and reject are guaranteed to be assigned before they are returned. Using ! explicitly communicates this guarantee to the TypeScript compiler in a type-safe way.
This PR doesn't include a change file which is used for automated release notes.
If your change affects users, please add one (or more) change files and commit the generated file(s).
pnpm run changes:add
This script requires Node 24+. If you are on a lower version, please add a file manually
Not every PR needs a change file — you can skip this step if the change is internal-only
(tests, tooling, docs)
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.
Refactors
createDeferredto use definite assignment assertions (!) forresolveandreject, completely eliminating the need for@ts-ignorecomments.Because the
Promiseexecutor runs synchronously,resolveandrejectare guaranteed to be assigned before they are returned. Using!explicitly communicates this guarantee to the TypeScript compiler in a type-safe way.