[typescript] How do I dynamically assign properties to an object in TypeScript?