# TypeScript

TypeScript — Legend Motion documentation.

Source: https://legend.so/motion/v2/resources/typescript/

Legend Motion v2 documentation. Current documentation version.

Legend-Motion tries to be as strongly typed as possible, with the `animate` prop autocompleting the available styles of the component, `animateProps` autocompleting the component's props, and the `transition` prop autocompleting only the properties that are animated.

If types are not working please ensure that you've installed `@types/react` (`@types/react-dom` is only needed for web apps). React Native 0.71 and newer include their own types, so you don't need `@types/react-native`.

```bash
npm install @types/react
```

[View Markdown](https://legend.so/motion/v2/resources/typescript.md)[Report a documentation correction](https://github.com/LegendApp/legend-docs/issues/new?title=Docs%3A+TypeScript&body=Page%3A+https%3A%2F%2Flegend.so%2Fmotion%2Fv2%2Fresources%2Ftypescript%0A%0AWhat+is+incorrect+or+missing%3F%0A%0AExpected+behavior+or+supporting+source%3A%0A)
