7nohe / laravel-typegen

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

[Feature Request] Support formRequestPath option #30

Closed NaoyaMiyagawa closed 5 months ago

NaoyaMiyagawa commented 5 months ago

Issue

Currently, it sees form-request class under the default path defined in another repo Here. In this way, it cannot export types for form-request files under non-default path.

Expected Behavior

Types of form-request class under a non-default path can be handled depending on a newly added option --formRequestPath="..."

Remarks

This change should not affect types of form-request classes under the default path


I'll give it a try on making a PR for this :)