If that was to me, you need to read it in context.
Also bear in mind union types and nullability are supported in TypeScript and should be considered and used. The benefits once you understand them are great, however.
Matt - my response saying the answer given was incorrect was not directed at you. I've edited it to make that clearer ;)
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.