Skip to content

Property 'index' does not exist on type '{ selection: any; }' #647

Open
@StrawHatHacker

Description

@StrawHatHacker

VSCode is warning me that let:index is not typed, but it works as it should.
v5.7.0

<Select
	multiple
	{loadOptions}
	bind:value={selected}
	bind:justValue
	on:input={(e) => dispatch('select', e.detail)}
>
	<div
		slot="item"
		let:item
	>
		{item.label}
	</div>
        <div slot="selection" let:selection let:index>
            {selection.label} - {index}
        </div>
	<div slot="empty" >Nothing found...</div>
</Select>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions