Good afternoon,
I've created an object with a discriminated union and attempting to filter an array that contains these objects and subsequently map over these objects.
Unfortunately after I've filtered the array for the discriminating property, the map function is no longer aware that the discriminating property was filtered for and it complains that the additional property does not exist.
How might I inform the map that this property does exist?
Example below.
Thanks