Skip to content

Commit

Permalink
fix(ui): typescript check error on select component
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanshatford authored Jan 13, 2025
1 parent c9cab3e commit 9c5ed33
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/ui/src/lib/components/Select.svelte
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
<script lang="ts">
import type { HTMLSelectAttributes } from 'svelte/elements';
interface SelectOption {
value: number | string | boolean;
text: string;
}
interface Props extends HTMLSelectAttributes {
label: string;
helpText?: string | undefined;
value: number | string | boolean | undefined;
options?: { value: number | string | boolean; text: string }[];
groups?: { text: string; disabled?: boolean; options: typeof options }[];
options?: SelectOption[];
groups?: { text: string; disabled?: boolean; options: SelectOption[] }[];
}
let {
Expand Down

0 comments on commit 9c5ed33

Please sign in to comment.