packery icon indicating copy to clipboard operation
packery copied to clipboard

TypeScript typings

Open michahell opened this issue 7 years ago • 3 comments

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 :)

michahell avatar Aug 16 '18 22:08 michahell

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.

desandro avatar Aug 17 '18 14:08 desandro

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 :)

michahell avatar Aug 20 '18 12:08 michahell

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. 😉

qJake avatar Sep 04 '19 02:09 qJake