Typ indeksowy w TS

//Indexable type Typescript 
interface ListItem {
  [prop: string ] : string | number ;
}

const List: ListItem = {
  name: "joyous jackal" ;
  email: "[email protected]";
  age: 21 ;
}
Joyous Jackal