heyman333 / react-animated-numbers

👾 Library showing animation of number changes in react.js
MIT License
246 stars 30 forks source link

add type definitions for alternate configs #43

Closed JohnGale87 closed 1 year ago

JohnGale87 commented 1 year ago

When using the configs as documented in the README typescript compilation fails with: Type error: Type '() => Partial<AnimationConfig>' is not assignable to type 'Partial<AnimationConfig>[]'.

Update the type definitions so it can be used as documented.

heyman333 commented 1 year ago

@JohnGale87 Thank you so much :)