mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
Revert "Refactor prop types to omit redundant null
for null | HTMLElement
types" (#1008)
#996
This commit is contained in:
parent
49a94b0ee4
commit
653a601f9b
13 changed files with 35 additions and 40 deletions
2
types/ComboBox/ComboBox.svelte.d.ts
vendored
2
types/ComboBox/ComboBox.svelte.d.ts
vendored
|
@ -135,7 +135,7 @@ export interface ComboBoxProps
|
|||
* Obtain a reference to the list HTML element
|
||||
* @default null
|
||||
*/
|
||||
listRef?: HTMLDivElement;
|
||||
listRef?: null | HTMLDivElement;
|
||||
}
|
||||
|
||||
export default class ComboBox extends SvelteComponentTyped<
|
||||
|
|
2
types/ContextMenu/ContextMenu.svelte.d.ts
vendored
2
types/ContextMenu/ContextMenu.svelte.d.ts
vendored
|
@ -8,7 +8,7 @@ export interface ContextMenuProps
|
|||
* If no element is specified, the context menu applies to the entire window
|
||||
* @default null
|
||||
*/
|
||||
target?: HTMLElement | HTMLElement[];
|
||||
target?: null | HTMLElement | HTMLElement[];
|
||||
|
||||
/**
|
||||
* Set to `true` to open the menu
|
||||
|
|
2
types/DataTable/ToolbarSearch.svelte.d.ts
vendored
2
types/DataTable/ToolbarSearch.svelte.d.ts
vendored
|
@ -37,7 +37,7 @@ export interface ToolbarSearchProps
|
|||
* Obtain a reference to the input HTML element
|
||||
* @default null
|
||||
*/
|
||||
ref?: HTMLInputElement;
|
||||
ref?: null | HTMLInputElement;
|
||||
}
|
||||
|
||||
export default class ToolbarSearch extends SvelteComponentTyped<
|
||||
|
|
4
types/MultiSelect/MultiSelect.svelte.d.ts
vendored
4
types/MultiSelect/MultiSelect.svelte.d.ts
vendored
|
@ -197,13 +197,13 @@ export interface MultiSelectProps
|
|||
* Obtain a reference to the field box element
|
||||
* @default null
|
||||
*/
|
||||
fieldRef?: HTMLDivElement;
|
||||
fieldRef?: null | HTMLDivElement;
|
||||
|
||||
/**
|
||||
* Obtain a reference to the selection element
|
||||
* @default null
|
||||
*/
|
||||
selectionRef?: HTMLDivElement;
|
||||
selectionRef?: null | HTMLDivElement;
|
||||
}
|
||||
|
||||
export default class MultiSelect extends SvelteComponentTyped<
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue