7nohe / laravel-typegen

The library lets you generate TypeScript types from your Laravel code
79 stars 5 forks source link

Does it support ReactJS with inertia? #32

Closed anburocky3 closed 5 months ago

7nohe commented 5 months ago

@anburocky3 Of course. While this library focuses on Inertia, it only provides TypeScript types, so it can also be used in a React (TypeScript) project with Inertia.

anburocky3 commented 5 months ago

Proper example with reactjs would be super helpful. I was using Laravel Data for now to sync all the types. Your package looks cool. Will try it.

7nohe commented 5 months ago

Thanks. I think there is also a demand for React, so I am considering adding an example. Laravel Data is also a great library for synchronizing types too. Laravel Typegen achieves type synchronization with an approach that does not require special modifications on the Laravel side.

anburocky3 commented 5 months ago

I would defintely love it. Please give us a example. If you need any help on documentation, would like to help.