The Laravel Podcast

TypeScript, Wayfinder, and Ranger with Joe Tannenbaum

12 snips
Sep 22, 2025
Joe Tannenbaum, an open-source lead engineer at Laravel and creator of Wayfinder and Ranger, discusses how Wayfinder generates TypeScript for Laravel routes to enhance type safety and developer experience. He explores the benefits of TypeScript, shares insights on static analysis for performance improvement, and offers coding tips for seamless integration. Joe also introduces Ranger, a new tool for app discovery that leverages static analysis to optimize Laravel apps. Discover how these innovations can transform your coding workflow!
Ask episode
AI Snips
Chapters
Transcript
Episode notes
INSIGHT

Inertia Props Become Typed Imports

  • Wayfinder generates types for Inertia props and other server-to-client data so components can import accurate typings.
  • Types update automatically as you change server code, keeping client and server in sync.
INSIGHT

Beyond Routes: Typed Broadcasts And More

  • Wayfinder also analyzes broadcast events and other app artifacts to expose typed data to the client.
  • The aim is end-to-end type safety between PHP and JavaScript across many touchpoints.
ADVICE

Use Wayfinder Outside Inertia Too

  • Use Wayfinder for any Laravel backend with a JavaScript/TypeScript frontend, not just Inertia.
  • Consume generated TypeScript in plain JavaScript if you don't adopt TypeScript fully yet.
Get the Snipd Podcast app to discover more snips from this episode
Get the app