mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
fix(types): strongly type translateWithId
parameters (#1284)
This commit is contained in:
parent
ff2e6276db
commit
0c39506dcb
8 changed files with 112 additions and 92 deletions
14
types/MultiSelect/MultiSelect.svelte.d.ts
vendored
14
types/MultiSelect/MultiSelect.svelte.d.ts
vendored
|
@ -123,10 +123,13 @@ export interface MultiSelectProps
|
|||
| (() => void);
|
||||
|
||||
/**
|
||||
* 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;
|
||||
|
||||
/**
|
||||
* Override the default translation ids for the menu
|
||||
|
@ -135,10 +138,13 @@ export interface MultiSelectProps
|
|||
translateWithIdMenu?: (id: any) => string;
|
||||
|
||||
/**
|
||||
* Override the default translation ids for the input
|
||||
* Override the label of the clear button when the input has a selection.
|
||||
* Defaults to "Clear selected item" and "Clear all items"
|
||||
* @default undefined
|
||||
*/
|
||||
translateWithIdInput?: (id: any) => string;
|
||||
translateWithIdInput?: (
|
||||
id: import("../ListBox/ListBoxSelection.svelte").ListBoxSelectionTranslationId
|
||||
) => string;
|
||||
|
||||
/**
|
||||
* Specify the title text
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue