fix(MultiSelect): use correct type for highlightedId

This commit is contained in:
dominikg 2022-03-12 22:34:03 +01:00
commit f88896bf25
4 changed files with 4 additions and 4 deletions

View file

@ -2422,7 +2422,7 @@ export interface MultiSelectItem {
| Prop name | Kind | Reactive | Type | Default value | Description |
| :---------------- | :--------------- | :------- | :--------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------- |
| highlightedId | <code>let</code> | Yes | <code>null &#124; string</code> | <code>null</code> | Id of the highlighted ListBoxMenuItem |
| highlightedId | <code>let</code> | Yes | <code>null &#124; MultiSelectItemId</code> | <code>null</code> | Id of the highlighted ListBoxMenuItem |
| selectionRef | <code>let</code> | Yes | <code>null &#124; HTMLDivElement</code> | <code>null</code> | Obtain a reference to the selection element |
| fieldRef | <code>let</code> | Yes | <code>null &#124; HTMLDivElement</code> | <code>null</code> | Obtain a reference to the field box element |
| multiSelectRef | <code>let</code> | Yes | <code>null &#124; HTMLDivElement</code> | <code>null</code> | Obtain a reference to the outer div element |

View file

@ -6809,7 +6809,7 @@
"name": "highlightedId",
"kind": "let",
"description": "Id of the highlighted ListBoxMenuItem",
"type": "null | string",
"type": "null | MultiSelectItemId",
"value": "null",
"isFunction": false,
"isFunctionDeclaration": false,

View file

@ -158,7 +158,7 @@
/**
* Id of the highlighted ListBoxMenuItem
* @type {null | string}
* @type {null | MultiSelectItemId}
*/
export let highlightedId = null;

View file

@ -222,7 +222,7 @@ export interface MultiSelectProps
* Id of the highlighted ListBoxMenuItem
* @default null
*/
highlightedId?: null | string;
highlightedId?: null | MultiSelectItemId;
}
export default class MultiSelect extends SvelteComponentTyped<