You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been looking into generating some custom TypeScript code based on some 3rd party TypeScript interfaces. I was hoping that this project could work for that, as it seems it is mostly a tool that parses a TypeScript interface then calls renders a Mustache template with the AST/metadata. It seems though that this tool explicitly requires your output to be either Swift or Kotlin. Could it be possible to allow custom language outputs (where the user would have to provide any language-specific transform logic)?
The text was updated successfully, but these errors were encountered:
Sorry for missing this issue. Yes, I think it's feasible, ts-gyb's workflow is kind of simple. A Parser to read the type information from TS and a render to convert ts type to the target language's type and render the template.
The parsing part can be shared for all target language, and to support a new target language, we just need a new value type transformer to handle the type conversion.
Unluckily, our team doesn't have bandwidth to extend it but welcome to raise the PR
I've been looking into generating some custom TypeScript code based on some 3rd party TypeScript interfaces. I was hoping that this project could work for that, as it seems it is mostly a tool that parses a TypeScript interface then calls renders a Mustache template with the AST/metadata. It seems though that this tool explicitly requires your output to be either Swift or Kotlin. Could it be possible to allow custom language outputs (where the user would have to provide any language-specific transform logic)?
The text was updated successfully, but these errors were encountered: