OasisDigital / angular-typed-forms-helpers

Some helper types for when you are dealing with Angular's typed reactive forms system
MIT License
6 stars 0 forks source link

Support booleans without splitting out union of true and false #2

Closed zjkipping closed 6 months ago

zjkipping commented 6 months ago

This resolves a bug around the booleans and conditional types. Apparently booleans are a union type of true | false and when a boolean is used with a generic and a conditional it gets split into the individual value types... This fix makes adds a special case for a boolean value type in the FormControl to cover this edge case.