fix(dropdown): strongly type translateWithId

This commit is contained in:
Eric Liu 2022-05-04 07:48:10 -07:00
commit 0fbb49b252
5 changed files with 38 additions and 30 deletions

View file

@ -121,10 +121,13 @@ export interface DropdownProps
hideLabel?: boolean;
/**
* Override the default translation ids
* Override the chevron icon label based on the open state.
* Defaults to "Open menu" when closed and "Close menu" when open
* @default undefined
*/
translateWithId?: (id: any) => string;
translateWithId?: (
id: import("../ListBox/ListBoxMenuIcon.svelte").ListBoxMenuIconTranslationId
) => string;
/**
* Set an id for the list box component