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

feat: smarter querySelector and querySelectorAll #218

Closed

Conversation

FabienDehopre
Copy link

optimize the declaration of both querySelector and querySelectorAll to always return the correct HTML element type based on the provided CSS query.

inspired from the Twitter/X post from Mike Ryan

@mattpocock
Copy link
Owner

This is cool, but feels outside of the scope of ts-reset. It could be its own awesome library - but I don't really want the burden of maintaining super-complex template literal types for a marginal gain.

@mattpocock mattpocock closed this Mar 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants