Skip to content

Release v20.33.4

Choose a tag to compare

@github-actions github-actions released this 03 Jun 17:05
34942d2

Fixed

  • ProxyGenerator now correctly maps nullable value types (DateTimeOffset?, DateTime?, int?, Guid?, bool?) to their underlying TypeScript types (Date, number, boolean, Guid) instead of the literal type name Nullable

Summary

The ProxyGenerator's GetTargetType method did not handle Nullable<T> generic types, causing nullable primitives in C# controller parameters to be translated as Nullable in TypeScript proxies instead of their correct underlying types.

Added nullable type detection that unwraps Nullable<T> to the underlying type and recursively resolves the correct TypeScript mapping. This fix ensures type safety is preserved across the C#/TypeScript boundary for all nullable primitive query parameters.