use-cannon icon indicating copy to clipboard operation
use-cannon copied to clipboard

Improve TypeScript support

Open codynova opened this issue 5 years ago • 2 comments
trafficstars

TypeScript is already supported in some capacity, and many type declarations already exist. However there is room for improvement and an even better developer experience. 😺

Convert the webworker to TypeScript and improve typings across all modules (minimize type assertions, improve event types with discriminated unions, etc.)

codynova avatar Mar 13 '20 15:03 codynova

This is waiting on the typescript branch for cannon-es to be completed

EDIT: The initial TS conversion for [email protected] is now complete

codynova avatar Mar 17 '20 23:03 codynova

Make the API types more honest... See https://github.com/react-spring/use-cannon/issues/51#issuecomment-607005331

codynova avatar Apr 01 '20 03:04 codynova