Normally, to determine variable type in TypeScript, I can do something like this:
if (typeof payload === \'string\') { console.log(payload) // const paylo