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

Add TypeScript definition #4

Merged
merged 13 commits into from
Feb 9, 2019
Merged

Add TypeScript definition #4

merged 13 commits into from
Feb 9, 2019

Conversation

fregante
Copy link
Owner

@fregante fregante commented Feb 1, 2019

@sindresorhus pls cek

tsc passes, but does that mean anything?

@fregante
Copy link
Owner Author

fregante commented Feb 2, 2019

For reference, here's a TypeScript issue about automatically determining the element from a compound selector (plain element selectors already work correctly!) microsoft/TypeScript#29037

index.d.ts Outdated Show resolved Hide resolved
@sindresorhus
Copy link
Collaborator

You should write some type tests: https://github.com/sindresorhus/typescript-definition-style-guide#testing

@fregante
Copy link
Owner Author

fregante commented Feb 5, 2019

Does tsd-check work in the browser though?

@sindresorhus
Copy link
Collaborator

@bfred-it No. Why would you need it to?

@fregante
Copy link
Owner Author

fregante commented Feb 6, 2019

Because the other regular tests are run in electron. Select-dom calls document.querySelector

@sindresorhus
Copy link
Collaborator

@bfred-it tsd-check doesn't actually evaluate the file. It just runs the TS type checker on it.

@fregante fregante changed the title Tentatively add types Add TypeScript definition Feb 9, 2019
@fregante fregante merged commit a5e86e6 into master Feb 9, 2019
@fregante fregante deleted the types branch February 9, 2019 17:41
@fregante
Copy link
Owner Author

fregante commented Feb 9, 2019

@sindresorhus I'll add that in the future. Releasing this for now since it seems to be working on RGH already

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