•7 months ago
We are excited to announce that our newest version of Stream's React SDK has been fully converted to TypeScript. Therefore, you can find guaranteed type-safety for code throughout this SDK, making it easier to read and debug.
Additionally, these recent upgrades allow the use of a versatile and valuable tool for creating reusable components, also known as generics. Users are now able to create a component that can work over a multitude of types rather than a single one, permitting user-provided typings to pass through server responses, custom components, filters, etc. The documentation on this new release contains examples of how TypeScript can use inference from a provided prop to infer the utilized generics.
We hope this improved library that allows for fully typed responses through the use of user-defined types enhances your experience with Stream Chat SDK.
- Register to get an API key for Stream Chat
- React Chat Tutorial
- Chat UI Kit
- Demo Apps
- Component Docs