Typescript Union type – field type override I have following sample code that behaviour is not clear to me.