It can be useful to get a type from an array of values so that you can use it ... const animals = ['cat', 'dog', 'mouse'] function getAnimal(name: string) ...
確定! 回上一頁