Can I use TypeScript types to restrict array inputs to certain elements?
For example, if I wanted to create a type that is an array that could hold any number of elements, but the elements are restricted to the values: "dog", 3, and true, could I do this without allowing any other string, number, or boolean values?