I honestly dont know if Im right, but this one seems easily inferrable and I just cannot make it work. It might be a bug (cannot know that for sure) or maybe there is some reason why this is happening and Im just not aware of the problem in my code.
Would be greatly appreciated if somebody can clarify things up for me. From my point of view this should behave quite exactly the same as strict shapes example in the docs here
EDIT:// I got it to work (see below), but I have no idea whats the difference between those 2:
m.iwcs !== undefined (working)
typeof m.iwcs !== 'undefined' (not working)
Shouldnt they both just work? Also started testing this code branch with such
typeof m.iwcs === 'string'
'iwcs' in m
and they are not working too, which is rly odd
Original problematic code
Working example