[typescript] How can I create an object based on an interface file definition in TypeScript?