3 points · by hackathons2 · 7y ago · 1 comment
This answers a puzzling irk I had with TypeScript where name?: <type> could have a valid value of <type> or undefined rather than what I'd expect to be null or a non-null valid value of <type>. If I consider that 'name' is a property of the containing object then undefined makes sense in context. It is annoying to say <type> | null | undefined though.