Please explain someone the reason and mechanics of that TS doesn't match the types for a (string vs 'test') matching those for b at the same time. How can I solve this? The playground is here. Thank you in advance.
(async () => {
const [a]: ['test'] = await Promise.all([Promise.resolve('test')])
// ^ type mismatch here
const b: 'test' = await Promise.resolve('test')
console.log(a, b)
})()