packagist spatie/laravel-typescript-transformer 3.0.0

8 hours ago

This is a major release built on top of the completely rewritten spatie/typescript-transformer v3.

What's New

  • Everything new in spatie/typescript-transformer v3
  • Service provider configuration - Configure the package in a service provider instead of a config file
  • Controller type generation - Automatically generate TypeScript types for your Laravel controller actions, including request parameters and response types
  • Route type generation - Generate a typed route helper with full autocompletion for route names and parameters
  • Watch mode - File watcher that automatically regenerates TypeScript types as you develop

Breaking Changes

  • Requires PHP 8.2+ and Laravel 10+
  • Configuration moved from config file to service provider
  • Depends on spatie/typescript-transformer ^3.0

Since it is a complete rewrite, we recommend reading through the new docs and updating your application accodingly.

Don't miss a new laravel-typescript-transformer release

NewReleases is sending notifications on new releases.