Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix watch overload types #1159

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
bluebill1049 merged 1 commit into react-hook-form:master from Ovoda:master
Jul 10, 2025
Merged

Fix watch overload types #1159

bluebill1049 merged 1 commit into react-hook-form:master from Ovoda:master
Jul 10, 2025

Conversation

Copy link
Contributor

@Ovoda Ovoda commented Jul 10, 2025

This PR fixes the watch() function documentation, which previously listed incorrect overloads.

Before

watch(name: string, defaultValue?): unknown
watch(names: string[], defaultValue?): {[key:string]: unknown}
watch(): {[key:string]: unknown}

After

watch(name: string, defaultValue?: unknown): unknown
watch(names: string[], defaultValue?: {[key:string]: unknown}): unknown[]
watch(): {[key:string]: unknown}

bluebill1049 reacted with thumbs up emoji
Copy link

vercel bot commented Jul 10, 2025
edited
Loading

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-hook-form-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 10, 2025 2:28pm

Copy link

netlify bot commented Jul 10, 2025
edited
Loading

Deploy Preview for sage-cassata-31d224 ready!

Name Link
🔨 Latest commit d59dc1f
🔍 Latest deploy log https://app.netlify.com/projects/sage-cassata-31d224/deploys/686fcdbce366dd0008a273bb
😎 Deploy Preview https://deploy-preview-1159--sage-cassata-31d224.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@bluebill1049 bluebill1049 merged commit e9499f9 into react-hook-form:master Jul 10, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@bluebill1049 bluebill1049 bluebill1049 approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /