Kindness-Works / rocket-ts

Generate types directly from Rocket request handlers
MIT License
2 stars 1 forks source link

Omit Custom Request Guards, take 2 #6

Closed dteare closed 5 months ago

dteare commented 5 months ago

Adds support for excluding types from the generated TS interface. Especially useful for skipping over params that are created automatically via Rocket request guards.

This PR also:

[!NOTE] This PR resulted from reviewing @AvaterClasher's PR #5. Technically, I should have pushed to the original branch but inadvertently used the review branch directly and decided to keep it. Thankfully all of @AvaterClasher's commits are preserved here with the proper attribution.

Closes #3.

Supersedes #5.