I'm working with an array that contains various data types - String, Number, and Boolean. My goal is to ensure that these elements are present in the array in a specific order. Here is how my array looks:
const idList: (String| Number | Boolean )[] = ["someStringId1","someStringId2", 01, 09, true, false];
Although I've already used Type annotation to allow for any String, Number, or Boolean, I need to figure out how to restrict it so that only String, Number, and Boolean appear in that exact order.