Cookie

This site uses tracking cookies used for marketing and statistics. Privacy Policy

  • Home
  • FAQs
  • Can I use TypeScript with Laravel Inertia?

Can I use TypeScript with Laravel Inertia?

Yes. TypeScript is fully supported across React, Vue, and Svelte Inertia stacks. We use TypeScript on every new Inertia build by default. Shared types between Laravel and the frontend are typically generated through Spatie's TypeScript Transformer or a similar tool that reads PHP DTOs and exports matching TypeScript interfaces. This eliminates a common source of bugs in JavaScript SPAs where backend response shapes drift from what the frontend expects.