If one has a string array say,
const myArray = ["apple", "banana"]
How would one type this in TypeScript so that is satisfies any/all of the following:
["banana", "apple"]
["banana"]
["apple"]
I thought I could do something like:
const myArray = ["apple", "banana"] as const
type MyArrayType = typeof myArray;
But that doesn't seem to work as expected.