metafizzy / packery

:bento: Gapless, draggable grid layouts
https://packery.metafizzy.co
4.13k stars 315 forks source link

TypeScript typings #510

Open michahell opened 6 years ago

michahell commented 6 years ago

I'm looking to use a bin-packing / masonry library, but I'd like to be able to use TypeScript typings. Unfortunately the @types/packery types haven't been updated in a while and seem to be stuck at version 1.4.1. Are there any plans to add typings to the packery package itself ? It seems there is...space... for improving on typings :)

desandro commented 6 years ago

Hello! Thanks for opening this issue.

Personally, I am not a types proponent. But I understand others may be interested. So, I leave it to community developers to build out type features outside of Packery main project.

michahell commented 6 years ago

roger that. I've decided to go libraryless for what I currently need, but maybe this can be a call to TS devs to pick up the work in @types/packery and make it up to date to the current version :)

qJake commented 5 years ago

I updated the typings file for the current release. It may not be 100% perfect but it's pretty close.

https://gist.github.com/qJake/44fb3d027007a00695d719f8c4131f93

P.S. @desandro TypeScript is your friend, you should definitely check it out on a rainy day. 😉