I\'m trying to use the following pattern:
enum Option { ONE = \'one\', TWO = \'two\', THREE = \'three\' } interface OptionRequirement { someBool: bo
You can use TS "in" operator and do this:
enum Options { ONE = 'one', TWO = 'two', THREE = 'three', } interface OptionRequirement { someBool: boolean; someString: string; } type OptionRequirements = { [key in Options]: OptionRequirement; // Note that "key in". }