index an object with the keyof an interface while the value is a function with the return type of that key

后端 未结 0 1832
予麋鹿
予麋鹿 2021-01-31 04:08

Here\'s what I have as an interface:

interface Person{
    name: string
    age: number
    hobbies: string[]
}



const processors : {[functioname: keyof Person}         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题