Misha Kaletsky

Misha Kaletsky

Misha Kaletsky is an active open-source contributor, known for projects like expect-type, trpc-cli and eslint-plugin-codegen. Misha has specialized in C#, F# and TypeScript at Microsoft, since building out multiple healthcare startups from scratch, almost exclusively in TypeScript. He has a particular interest in developer productivity and type safety for large-scale applications. Misha lives across the river in Brooklyn with his wife and one-year old son (with a second due a few weeks before JSNation!).
Ensuring Typescript Code Quality With expect-type
JSNation US 2024JSNation US 2024
Upcoming
Ensuring Typescript Code Quality With expect-type
TypeScript's static typing catches many errors, but how do we ensure our type definitions themselves are correct? This talk introduces type testing and demonstrates its implementation using expect-type, a lightweight library for exactly this.

We'll cover:

- The concept of type testing and its importance in TypeScript projects
- A deep dive into expect-type's features and API
- Practical examples of using expect-type to catch subtle type errors
- Integrating expect-type into existing projects and CI pipelines
- Advanced use cases and best practices

Drawing from real-world scenarios, we'll explore how expect-type can be used as a standalone library, or through Vitest which bundles it natively, to enhance type safety and code quality.

Suitable for TypeScript developers of all levels, this talk will equip you with the tools and knowledge to write more robust, type-safe code using expect-type.