0

So I have to create type for object that will always look like:

{ key1 : ['val1', 'val2', 'val3'], key2 : ['val4', 'val5', 'val6'] }

I want to ensure that values will always be an :string[] type but the key value will be changing, how can I approach that?

Is there something like

interface IXXX { [whatever] : string[] }
mokatte
  • 1
  • 1

0 Answers0