Popmotion / popmotion

Simple animation libraries for delightful user interfaces
https://popmotion.io
20k stars 663 forks source link

Typing error after updating to v8.7.4 from v8.7.3 #891

Closed Ky6uk closed 4 years ago

Ky6uk commented 4 years ago

TypeScript is producing an error after the last update

 39:17 This expression is not callable.
   Type 'typeof import("node_modules/popmotion/lib/animations/keyframes")' has no call signatures.
     37 |       x: 0,
     38 |
   > 39 |       transition: keyframes({
        |                 ^
     40 |         values: [0, 15, 0],
     41 |         duration: 200
     42 |       })
Ky6uk commented 4 years ago

It looks the last update has introduced a new keyframes.d.ts file in the lib/animations directory. And at the same time, the directory keyframes also exists, @InventingWithMonster.

mattgperry commented 4 years ago

Thanks for the report! Can you check 8.7.5 for me?

Ky6uk commented 4 years ago

Yep. It works fine in v8.7.5.