Commit Graph

7 Commits (7ab9d95dc8426c2e705313b660c7258e44d172f2)

Author SHA1 Message Date
Glen Cheney dc219da97a
Update TS definitions (#287)
* Update index.d.ts

* Add test typescript file and run it on npm test

* Ignore built file from types
5 years ago
Glen Cheney be410cc17f Change typings to use default export #214
If you're using CommonJS, you will need to `import * as Shuffle from 'shufflejs'`.
If you're using webpack and ts is configured to maintain `import`s, you can use it like `import Shuffle from 'shufflejs'`
5 years ago
Glen Cheney f72f57d5c5 Fix misspelled delimiter option #215 6 years ago
AntoineC bd6733b7eb Add missing type for sortOptions (#174)
Fix parameter declaration for getStylesForTransition function.
Those two changes allow to use Typescript compiler with option noImplicitAny.
7 years ago
Glen Cheney eaae5533ff Round translate values by default. 7 years ago
Glen Cheney 3b9e140a53 Avoid requirement for scale properties being different.
This is done with the new `isHidden` property of ShuffleItem which is set by `_layout` and `_shrink` because the filter methods set `isVisible`.
Allow transitions on anything, not just transform and opacity.
JSDoc `Function` => `function`.
7 years ago
Glen Cheney ded5ff2546 Add typings file. 7 years ago