Skip to content

No types on scoped slotes #391

@AlexKharenko

Description

@AlexKharenko

Props from scoped slots always return never but it should have type for each prop. There is no difference if i use it like this

<template
        v-for="(_, slot) in $slots as unknown as Multiselect['$slots']"
        #[slot]="scope"
 >
        <slot :name="slot" v-bind="scope as object" />
</template> 

or like this

<template #option="{ option, isPointed, isSelected, search }">
        <div>{{ option.name }}</div>
</template>

All this props are never type and typescript is alerting that there is a problem.

Please, provide typescript support!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions