-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
typescript typings #1521
typescript typings #1521
Conversation
@sampotts can you check this PR, please? |
In the meanwhile, if anybody needs the type definitions in their project without rebuilding the package themselves, simply add this file to your src: I've wrapped @ondratra 's work in a module definition :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this 👍
@ondratra is there any reason to use The current implementation is very confusing since the plyr documentation uses default export all over again and |
@sampotts could you confirm that default export is a "proper" way to go? |
@smnbbrv Some clarity on the topic of The way I import
I guess it might seem confusing because |
@ondratra hm. It works in my project if I use default export... Could you remember what was the issue? My problem is that I received a PR smnbbrv/ngx-plyr#35 which is targeting this and now I'm slightly confused. No worries, I can use That's why I'd love to see @sampotts opinion in this conversation. |
@smnbbrv The issue is mentioned in my last post - Strangely enough, at the time of writing that sandbox imports empty object from plyr and I don't know a reason why. =-O But it should return a function like my previous post suggested. |
@ondratra thanks for claryfying, and great thanks for your work! |
Summary of proposed changes
Hi, I have created and tested Typescript types for the project that were missing.
Checklist
develop
as the base branch/dist
changes) from the PR