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

Update dependencies, add TypeScript definition #15

Merged
merged 5 commits into from Mar 13, 2019
Merged

Update dependencies, add TypeScript definition #15

merged 5 commits into from Mar 13, 2019

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

index.js Outdated Show resolved Hide resolved
index.d.ts Outdated Show resolved Hide resolved
index.test-d.ts Outdated Show resolved Hide resolved
@sindresorhus sindresorhus merged commit af96d2c into sindresorhus:master Mar 13, 2019
package.json Show resolved Hide resolved
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.

None yet

3 participants