How to dynamically assign properties to an object in TypeScript - LogRocket Blog
Briefly