mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-21 04:39:19 +00:00
Run "yarn build:lib"
This commit is contained in:
parent
be854e0d3f
commit
e7a0d46125
3 changed files with 30 additions and 18 deletions
11
types/ComboBox/ComboBox.svelte.d.ts
vendored
11
types/ComboBox/ComboBox.svelte.d.ts
vendored
|
@ -1,8 +1,10 @@
|
|||
/// <reference types="svelte" />
|
||||
import { SvelteComponentTyped } from "svelte";
|
||||
|
||||
export type ComboBoxItemId = any;
|
||||
|
||||
export interface ComboBoxItem {
|
||||
id: string;
|
||||
id: ComboBoxItemId;
|
||||
text: string;
|
||||
}
|
||||
|
||||
|
@ -23,7 +25,7 @@ export interface ComboBoxProps
|
|||
/**
|
||||
* Set the selected item by value id
|
||||
*/
|
||||
selectedId?: string;
|
||||
selectedId?: ComboBoxItemId;
|
||||
|
||||
/**
|
||||
* Specify the selected combobox value
|
||||
|
@ -140,7 +142,10 @@ export interface ComboBoxProps
|
|||
export default class ComboBox extends SvelteComponentTyped<
|
||||
ComboBoxProps,
|
||||
{
|
||||
select: CustomEvent<{ selectedId: string; selectedItem: ComboBoxItem }>;
|
||||
select: CustomEvent<{
|
||||
selectedId: ComboBoxItemId;
|
||||
selectedItem: ComboBoxItem;
|
||||
}>;
|
||||
keydown: WindowEventMap["keydown"];
|
||||
keyup: WindowEventMap["keyup"];
|
||||
focus: WindowEventMap["focus"];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue