-
-
Notifications
You must be signed in to change notification settings - Fork 146
-
-
Notifications
You must be signed in to change notification settings - Fork 146
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
Type-definitions #74
Comments
Excuse me? I'm not even providing ts-types for this package (at least not yet officially), do you mean this package? |
Sure, but who supports that package? Not you? Maybe it's time to convert to typescrtipt or have your own types? |
Huh, if you're using selectionjs with ts you should have recognized type-search and how they maintain types. And don't you see that this package doesn't even contain ts-files? Neither I'm mentioning ts-support or types anywhere in the readme. Types by TypeSearch is made for packages who are not actively supporting types, so there's no reason to publish your js-package and "polyfilling" your own project with types. I won't rewrite the code-base just for the sake of ts - maybe I'll add types sooner or later, is it that what you want? Native ts-support? |
yeah :) |
@deser I've added and updated the type-definitions for this package. Typings for the In case I'm wrong, could you please tell me what's missing in here? |
Firstly, thanks a lot! I think you need to change this at the top: type ElementList = Element | readonly Element[] | NodeList | HTMLCollection | HTMLElement | HTMLElement[]; |
No, Element doesn't have necessary props which HTMLElement has :) Please, just add and release new version :) |
@simonwep , so what? :) |
@deser If type ElementList = NodeList | HTMLCollection | HTMLElement | HTMLElement[]; Although |
HTMLElement is ok. I think you can do the changes and publish package :) |
Woah, no need to stress with publishing a new version. |
These are always HTML elements so I can safely use |
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Need to add HTMLElement type on('move') handler for removed/added
The text was updated successfully, but these errors were encountered: