mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
fix(dropdown): strongly type translateWithId
(#1286)
This commit is contained in:
parent
0e88a24a55
commit
d242849780
5 changed files with 38 additions and 30 deletions
7
types/Dropdown/Dropdown.svelte.d.ts
vendored
7
types/Dropdown/Dropdown.svelte.d.ts
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue