After configuring the package in the
typescript-transformer config file, you can run this command to write the typescript output file:
php artisan typescript:transform
There are some extra commands you can use when running the command. It is also possible to only transform one class:
php artisan typescript:transform --class=app/Enums/RoleEnum.php
Or you can define another output file than the default one:
php artisan typescript:transform --output=types.d.ts
This file will be stored in the resource's path of your Laravel application.