Using TypeScript — Generic Collections and Index Types