Skip to content

Conversation

@BendingBender
Copy link
Contributor

No description provided.

Copy link
Collaborator

@fregante fregante left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are more specific types that can be used to better match the signature of querySelector. Take a look at these: https://github.com/bfred-it/select-dom/blob/master/index.d.ts

For example, selector can make use of HTMLElementTagNameMap and the return type is a plain Element

Which reminds me, I should also add document in the baseElement types

@sindresorhus sindresorhus merged commit af96d2c into sindresorhus:master Mar 13, 2019
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.

3 participants