> The OR doesn't indicate | in TypeScript, it indicates the result of the possible future type guard.
Are you implying in your other comment (that HN won't let me reply to) that Typescript has an "OR" operator that is distinct from "|"? Can you link to documentation on that?