Combination of values in object attributes typescript
I was wondering if there is a construct in typescript that I can use in order to restrict possible values of an object depending on the values. I can describe it something like that: interface IObject = { key1:string; key2:string; key3:"A" | null; key4: (if key3 is ‘A’ then allow ‘value1′ |’value2’ else if it… Read More Combination of values in object attributes typescript