Skip to content
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

QoL improvements to types #489

Merged
merged 5 commits into from
Feb 21, 2025
Merged

QoL improvements to types #489

merged 5 commits into from
Feb 21, 2025

Conversation

megheaiulian
Copy link
Collaborator

@megheaiulian megheaiulian commented Feb 21, 2025

QoL improvements to types:

  • Allow omitting initialValue from useRef
  • export Ref type
  • Export type Options from component as ComponentOptions.
  • Improvements to useState

Fixes #466

@megheaiulian megheaiulian added enhancement New feature or request typings Problems with the types labels Feb 21, 2025
@megheaiulian megheaiulian self-assigned this Feb 21, 2025
Copy link

changeset-bot bot commented Feb 21, 2025

🦋 Changeset detected

Latest commit: 8ff7db9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
haunted Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

netlify bot commented Feb 21, 2025

Deploy Preview for hauntedhooks ready!

Name Link
🔨 Latest commit 8ff7db9
🔍 Latest deploy log https://app.netlify.com/sites/hauntedhooks/deploys/67b803dc5760cf00082c8583
😎 Deploy Preview https://deploy-preview-489--hauntedhooks.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 site configuration.

@megheaiulian megheaiulian changed the title feat/update types QoL improvements to types Feb 21, 2025
@megheaiulian megheaiulian merged commit b81c8ec into main Feb 21, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request typings Problems with the types
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using useState with generic types
2 participants