In my Vue component, I am working with a prop called tabs
. The format for this prop is expected to be as follows:
[{
id: string
title: string
color: `#${string}`
},{
id: string
title: string
color: `#${string}`
}]
Currently, I am utilizing Laravel, Vite, and Vue 2. Since Vite supports Typescript, I would like to define a type for my tabs
prop. I specifically want to use the custom type mentioned above. Despite my efforts to find a solution, I have not been successful in achieving this without migrating to Vue 3, which is not feasible at this time. If anyone knows if this can be done and how to accomplish it, your input would be greatly appreciated. Thank you.