Skip to content

fix(refManualReset): add explicit return type annotation - #5246

Merged
antfu merged 1 commit into
vueuse:mainfrom
batuhan-bas:fix/refManualReset-return-type
Jan 9, 2026
Merged

antfu merged 1 commit into
vueuse:mainfrom
batuhan-bas:fix/refManualReset-return-type

Conversation

@batuhan-bas

Copy link
Copy Markdown
Contributor

Added explicit return type ManualResetRefReturn<T> to fix TypeScript declaration generation issues.

Closes #5232

Before submitting the PR, please make sure you do the following

  • Read the Contributing Guidelines.
  • Read the Pull Request Guidelines.
  • Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
  • Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
  • Ideally, include relevant tests that fail without this PR but pass with it.

Description

Added explicit return type ManualResetRefReturn<T> to refManualReset function.

The function was missing an explicit return type annotation, which caused TypeScript declaration files (.d.ts) to not properly export the type information. This made refManualReset unusable when imported as an npm package.

Fixes #5232

Additional context

Simple one-line fix. The interface ManualResetRefReturn<T> was already defined but not used in the function signature.

Added explicit return type ManualResetRefReturn<T> to fix TypeScript
declaration generation issues.

Closes vueuse#5232
@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jan 9, 2026
@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Jan 9, 2026
@antfu
antfu merged commit 13bbbe5 into vueuse:main Jan 9, 2026
0 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG | refManualReset is broken

2 participants