danvk/pg-to-ts

Support @type annotations for text columns

Opened this issue · 0 comments

danvk commented

If you have a varchar / text column that actually corresponds to a particular TS type (a union of string literal types) then it could be useful to annotate it with an @type comment, similar to how we do JSON types.