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

Nullable for non-primitive fields #24

Open
antal-huck opened this issue May 21, 2021 · 0 comments
Open

Nullable for non-primitive fields #24

antal-huck opened this issue May 21, 2021 · 0 comments

Comments

@antal-huck
Copy link

Since non-primitives in C# are nullable, would it make sense if all the transformed non-primitive fields in the TypeScript interfaces also get nullable?

Example: Suppose we have a C# class ExampleClass with one field a of type NestedClass. Then the transformed TypeScript interface could automatically be:

export interface ExampleClass {
a: NestedClass | null;
}

instead of

export interface ExampleClass {
a: NestedClass;
}

@antal-huck antal-huck changed the title Nullable for non-primitives fields Nullable for non-primitive fields May 24, 2021
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

1 participant