[Typescript]: How to check if type (not object) has a specific property?
I am working with a generated complex type that is rather big. I need to check if certain properties exists on the type with create a variable and initializing all its properties to default/null values, since that would be too much work.