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

Added Typescript declaration file for the Draggabilly library. #109

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

giespaepen
Copy link

Great library and I just needed dragging in a webproject without the need of the large jQueryUI library. Since I develop with Angular/Typescript it came in handy to create a declaration file. Feel free to merge it!

@desandro
Copy link
Owner

desandro commented Nov 5, 2015

Thanks for this contribution. I don't have any experience with Typescript and Angular 2, so I'd like to wait and see if others are interested in adding this before I merge it in.

Add a 👍 reaction to this PR if you'd like to see this feature added to Draggabilly.

@jhrdina
Copy link

jhrdina commented Dec 1, 2015

+1

4 similar comments
@amritk
Copy link

amritk commented Dec 7, 2015

+1

@jackhayter
Copy link

+1

@p-mcgowan
Copy link

+1

@GarrisonJ
Copy link

+1

@mattleibow
Copy link

Totally a +1!

@corykon
Copy link

corykon commented Aug 4, 2016

+1

2 similar comments
@artemverbo
Copy link

+1

@chrismacp
Copy link

+1

@chrismacp
Copy link

Not sure this declaration file works if you don't have JQuery though? It's referencing a JQuery directory which I don't have in my typings directory. Not sure what the best solution is as I'm just learning TypeScript.

@j2jensen
Copy link

j2jensen commented Nov 3, 2016

Chrismacp makes a good point. I don't see why the jQuery reference at the top needs to be there anyway. It should work just fine without it.

What about adding this as a DefinitelyTyped entry while we wait to see if it gets accepted? I imagine most people who want jQuery typings are going to be pulling them from DefinitelyTyped anyway, right?

@desandro desandro mentioned this pull request Feb 9, 2017
@giespaepen
Copy link
Author

Sorry @desandro, forgot this PR completely. Still valid if I add some typings. Not that much effort nowadays.

* Interface for the main object
*/
interface Draggabilly {
new (element: any, options: Draggabilly.IDraggabillyOptions);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't options be an optional parameter?

@giespaepen giespaepen closed this Nov 7, 2020
@desandro desandro reopened this Jan 16, 2021
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