📅  最后修改于: 2022-03-11 14:48:15.997000             🧑  作者: Mango
// 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];