Typescript Extract Type From Array Python Example Class Of Voice