Skip to content

Commit aa09e87

Browse files
committed
fix(select): all slots should be optional for TS
1 parent 21bbf19 commit aa09e87

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/types/slots.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ import type { Option } from "@/types/option";
66
* @see https://vuejs.org/api/sfc-script-setup#defineslots
77
*/
88
export type Slots<GenericOption extends Option<OptionValue>, OptionValue> = {
9-
"value": (props: { option: GenericOption }) => any;
10-
"tag": (props: { option: GenericOption; removeOption: () => void }) => any;
11-
"clear": () => any;
12-
"dropdown": () => any;
13-
"loading": () => any;
14-
"menu-header": () => any;
15-
"option": (props: { option: GenericOption; index: number; isFocused: boolean; isSelected: boolean; isDisabled: boolean }) => any;
16-
"no-options": () => any;
17-
"taggable-no-options": () => any;
9+
"value"?: (props: { option: GenericOption }) => any;
10+
"tag"?: (props: { option: GenericOption; removeOption: () => void }) => any;
11+
"clear"?: () => any;
12+
"dropdown"?: () => any;
13+
"loading"?: () => any;
14+
"menu-header"?: () => any;
15+
"option"?: (props: { option: GenericOption; index: number; isFocused: boolean; isSelected: boolean; isDisabled: boolean }) => any;
16+
"no-options"?: () => any;
17+
"taggable-no-options"?: () => any;
1818
};
1919

2020
export type IndicatorsSlots<GenericOption extends Option<OptionValue>, OptionValue> = Pick<

0 commit comments

Comments
 (0)