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 have a project where I'm generating types for C# and Typescript. In C# I'm stuck on .NET Framework, thus on C# < 8.0. I'd like to be able to use optional properties (for Typescript), but they are turned into nullable reference types in C#, which are only supported in 8.0.
Here's an example. I have this json, which includes an optional reference property.
I have a project where I'm generating types for C# and Typescript. In C# I'm stuck on .NET Framework, thus on C# < 8.0. I'd like to be able to use optional properties (for Typescript), but they are turned into nullable reference types in C#, which are only supported in 8.0.
Here's an example. I have this json, which includes an optional reference property.
It generates this Typescript, which is great (note the question mark after
jobState
):and this C#, which is only compilable in 8.0. In 7.3 I get this error:
Can there be a toggle to support C# < 8.0? Thanks!
The text was updated successfully, but these errors were encountered: