Skip to content

Commit e51d6c1

Browse files
committed
fix: scope slot types #391
1 parent c16c1d5 commit e51d6c1

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

src/Multiselect.d.ts

+9-10
Original file line numberDiff line numberDiff line change
@@ -193,19 +193,18 @@ declare class Multiselect implements ReturnType<typeof defineComponent> {
193193

194194
$slots: {
195195
placeholder: VNode[];
196-
afterlist: VNode[];
197-
beforelist: VNode[];
198-
list: VNode[];
199-
multiplelabel: VNode[];
200-
singlelabel: VNode[];
201-
option: VNode[];
202-
grouplabel: VNode[];
203-
tag: VNode[];
196+
afterlist: (props: { options: any[] }) => VNode[];
197+
beforelist: (props: { options: any[] }) => VNode[];
198+
multiplelabel: (props: { values: any[] | object }) => VNode[];
199+
singlelabel: (props: { value: any }) => VNode[];
200+
option: (props: { option: any, isSelected: boolean, isPointed: boolean, search: null | string }) => VNode[];
201+
grouplabel: (props: { group: any, isSelected: boolean, isPointed: boolean }) => VNode[];
202+
tag: (props: { option: any, handleTagRemove: (option: any, e: Event) => void, disabled: boolean, }) => VNode[];
204203
infinite: VNode[];
205204
nooptions: VNode[];
206205
noresults: VNode[];
207-
caret: VNode[];
208-
clear: VNode[];
206+
caret: (props: { handleCaretClick: () => void, isOpen: boolean, }) => VNode[];
207+
clear: (props: { clear: () => void }) => VNode[];
209208
spinner: VNode[];
210209
};
211210

0 commit comments

Comments
 (0)