[Vuejs]-How to add the correct type for ColumnSlots body function from PrimeVue

0👍

Well, I did this 1 minute after writing up the question and it worked…
Still unsure if it’s the best way to go but I’m posting it anyway in case someone finds it useful down the road.

function myFunction(slotProps: Parameters<ColumnSlots["body"][0]>) {
    const correctTypes = slotProps
}

Leave a comment