GoogleFeud / ts-runtime-checks

A typescript transformer that automatically generates validation code from your types.
https://googlefeud.github.io/ts-runtime-checks/
MIT License
312 stars 7 forks source link

[BUG] Cannot validate template literal type #17

Closed samchon closed 1 year ago

samchon commented 1 year ago

Describe the bug When template literal type comes, ts-runtime-checks understands it as a class having many methods.

type Template = `${number}___${string}`;

Playground link https://googlefeud.github.io/ts-runtime-checks?code=FAehAIEkDsBcFMBOBDAxrAlgN3uADgDbICeA5ogPYCu0AJgITgDqiGC4G04x1i4qFWrmR1wAZ3i424UvFiZopcLBTQxeDAXi1wFLrAAWuLQDNY9YLGJ5cAFXgBbQsnYBecAAMAJAG9oVBwAjJABfAH0I3zEVTlIQjwBuYGATGnQMPXAsZAIMWhd4AAoqCUQALnAAQTFS2AAeeyciBAA+AEpwH2BwHvAwcABNXn5BeAA6CeAQ4CA

Expected behavior Hope to be fixed