mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +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
|
@ -95,8 +95,9 @@
|
|||
a.text.localeCompare(b.text, locale, { numeric: true });
|
||||
|
||||
/**
|
||||
* Override the default translation ids
|
||||
* @type {(id: any) => string}
|
||||
* Override the chevron icon label based on the open state.
|
||||
* Defaults to "Open menu" when closed and "Close menu" when open
|
||||
* @type {(id: import("../ListBox/ListBoxMenuIcon.svelte").ListBoxMenuIconTranslationId) => string}
|
||||
*/
|
||||
export let translateWithId = undefined;
|
||||
|
||||
|
@ -107,8 +108,9 @@
|
|||
export let translateWithIdMenu = undefined;
|
||||
|
||||
/**
|
||||
* Override the default translation ids for the input
|
||||
* @type {(id: any) => string}
|
||||
* Override the label of the clear button when the input has a selection.
|
||||
* Defaults to "Clear selected item" and "Clear all items"
|
||||
* @type {(id: import("../ListBox/ListBoxSelection.svelte").ListBoxSelectionTranslationId) => string}
|
||||
*/
|
||||
export let translateWithIdInput = undefined;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue