Union and Intersection of types in TypeScript

added by DotNetKicks
11/2/2020 4:37:28 PM

410 Views

Do you know, TypeScript allows union and Intersection of types? Why you need that? Let us assume you need to create a function that checks whether the passed value is boolean true and returns true, otherwise returns null.


0 comments