Replies: 6 comments 3 replies
-
Ha so I’ve been playing around with some other derived stuff and have also found myself needing similar helpers as well. 🤔 I wonder now that this is a monorepo if we just make a third package that’s just any helper utilities that are remotely useful. That way it’s “free” to install because they’re only TS types (someone may not be using openapi-typescript, for example, but want some helpers). |
Beta Was this translation helpful? Give feedback.
-
Yes, I agree that these are slightly different because they have no runtime impact. I'd argue they would be best in openapi-typescript because even if you don't want to use the generation, the penalty is minimal, and it would be a devDependency anyways, but I can certainly see the other perspective. The other thing I really want is "real" enums, and that DOES have a runtime impact so it's more complex. (This isn't supported right now right?) |
Beta Was this translation helpful? Give feedback.
-
I did the enum thing here. What might be an even more flexible change is just to allow transform/postTransform to be specified on the CLI. |
Beta Was this translation helpful? Give feedback.
-
Semi-related: just remembered this issue that outlines a type helper someone needed. |
Beta Was this translation helpful? Give feedback.
-
Just merged #1300 which adds the |
Beta Was this translation helpful? Give feedback.
-
With |
Beta Was this translation helpful? Give feedback.
-
I find this helper, well... helpful - would a PR for them be welcome?
Beta Was this translation helpful? Give feedback.
All reactions