pmndrs / use-cannon

👋💣 physics based hooks for @react-three/fiber
https://cannon.pmnd.rs
2.76k stars 154 forks source link

Start converting examples to typescript #249

Closed bjornstar closed 3 years ago

bjornstar commented 3 years ago

This is a start to converting all the examples to typescript.

We immediately got into trouble with the default value of ref types. It would be really great to get #242 merged before we finish converting the rest of the examples.

bjornstar commented 3 years ago

With the changes from #242 we don't have to manipulate the RefObjects.

This is good to go and we now build the examples when testing which is a big win :)