Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescript-only members #166

Closed
mispencer opened this issue Aug 15, 2023 · 1 comment
Closed

Typescript-only members #166

mispencer opened this issue Aug 15, 2023 · 1 comment

Comments

@mispencer
Copy link
Contributor

I would like to be able to create members in the generated TS classes that don't exist in the source C# classes.

Rationale: I am using this to type JSON created by my service, however the JSON generated does not exactly match the source C# classes.

Possible Workaround: Custom typescript that references the generate TS files
Problems: Only suitable for top-level types. Changes to types nested in other types required customized all containing types and their containing types all the way up the tree. Potentially very many custom types if nested within many top-level types with many levels of nesting.

Possible Workaround:
Problem: Requires checking in generated TS files. Generated files containing manual changes is unexpected and easily missable.

@jburzynski
Copy link
Owner

Implemented in version 4.5.0 by merging #167

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants