bidang objek TS dari variabel

// use braces to access an object field from a variable
// use keyof to remove the 'any' type error

activeVideo = videos[target.value as keyof IVideoData];
Average Ape