Discriminating Union Types In Typescript

Hello Coders!👾 Recently I&rsquo;ve been working on porting an ancient Unity game to the Wonderland Engine, and it&rsquo;s been an interesting process to rework the game’s features to fit into a new environment. During this port, I ran into Unity’s way of handling two specific types of properties in particle systems: Min/Max Gradients and Min/Max Curves. In Unity, you can choose the type of…