Uploaded May 2025 | Updated September 2026, 2 weeks ago
Having complex typescript types also requires some level of confidence when touching them. Here's how we unit test our typescript types in TanStack Form to ensure you get all the magical typesafety in your forms.
_______________________________
Subscribe to my newsletter: https://leonardomontini.dev/newsletter
Support my work: github.com/sponsors/Balastrong ❤️
Hit like and subscribe for more content! :D
You can also follow me on the other platforms:
Discord Community: discord.gg/bqwyEa6We6
Twitter: twitter.com/Balastrong
dev.to: dev.to/balastrong
GitHub: github.com/Balastrong
Home: https://leonardomontini.dev/
TikTok: tiktok.com/@balastrong
Instagram: instagram.com/devbalastrong
_______________________________
TIMESTAMPS
00:00 The complex types in Tanstack libraries
00:41 Testing the type of a javascript object
02:14 Testing types in isolation
03:22 Run type tests automatically (local and CI)
04:35 How to setup Typescript tests
05:34 Why testing types matters
Having complex typescript types also requires some level of confidence when touching them. Here's how we unit test our typescript types in TanStack Form to ensure you get all the magical typesafety in your forms.
_______________________________
Subscribe to my newsletter: https://leonardomontini.dev/newsletter
Support my work: github.com/sponsors/Balastrong ❤️
Hit like and subscribe for more content! :D
You can also follow me on the other platforms:
Discord Community: discord.gg/bqwyEa6We6
Twitter: twitter.com/Balastrong
dev.to: dev.to/balastrong
GitHub: github.com/Balastrong
Home: https://leonardomontini.dev/
TikTok: tiktok.com/@balastrong
Instagram: instagram.com/devbalastrong
_______________________________
TIMESTAMPS
00:00 The complex types in Tanstack libraries
00:41 Testing the type of a javascript object
02:14 Testing types in isolation
03:22 Run type tests automatically (local and CI)
04:35 How to setup Typescript tests
05:34 Why testing types matters










