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 #123

Merged
merged 5 commits into from
Mar 19, 2019
Merged

Add TypeScript definition #123

merged 5 commits into from
Mar 19, 2019

Conversation

BendingBender
Copy link
Contributor

I'm not sure, whether it's a good idea to define types in index.d.ts while the main JS is in src/screenfull.js.

I'd actually prefer to put the types along the main JS file in src/screenfull.d.ts and extend the grunt config to copy this file over to dist.

The only problem to this is that tsd-check currently has two bugs preventing this. I've opened a PR with a fix, so if you want me to follow this path, we will have to wait for a new release of tsd-check.

@sindresorhus
Copy link
Owner

so if you want me to follow this path, we will have to wait for a new release of tsd-check.

👍 Sounds like the best solution. I can wait for that PR.

index.d.ts Outdated Show resolved Hide resolved
index.test-d.ts Outdated Show resolved Hide resolved
@sindresorhus
Copy link
Owner

I've opened a PR with a fix, so if you want me to follow this path, we will have to wait for a new release of tsd-check.

This is fixed now.

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