rhys-vdw / ts-auto-guard

Generate type guard functions from TypeScript interfaces
MIT License
493 stars 52 forks source link

Question: How to use ts-auto-guard to generate guards for types from another package #296

Open dls314 opened 6 days ago

dls314 commented 6 days ago

Hi,

I'm looking for good suggestions about how to use ts-auto-guard to generate guards for types from another package.

I'm using @types/aws-lambda, and I'd like to generate guards for some of the types it exports.

None of the approaches I've tried so far come without downsides, like editing generated guards by hand.

rhys-vdw commented 5 days ago

It's not really easy/possible as-is. Maybe you could try https://typia.io/?