Register to build your agenda.

OPEN TALK: JavaScript to TypeScript: Data Agnostic Type Safety Using Advanced Types

Neil Hannah
Stream, Senior React Native Developer

Neil Hannah has been focused on the React/JavaScript ecosystem for the past five years, with a focus on React Native for the past four. He has moved multiple projects from JavaScript to TypeScript in this time, as the community has continually adopted the static typing system. Most recently, he joined Stream and led the transition from manually supplied type definitions to full TypeScript adoption, and generated types on the Stream Chat client and React Native libraries.

Converting a JavaScript client for a data-agnostic API to TypeScript presents a number of challenges related to user-provided data. This talk will look at how it is possible to use generics and advanced types to fully describe interactions with a data-agnostic API in order to provide type safety and IntelliSense to an end-user.