mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
Refactor prop types to omit redundant null
for null | HTMLElement
types (#998)
* refactor: omit redundant `null` prop type for HTMLElements * yarn build:lib * test: assert updated element prop types
This commit is contained in:
parent
d31e529ca9
commit
6de73f86fb
13 changed files with 40 additions and 35 deletions
|
@ -1604,7 +1604,7 @@
|
|||
"name": "listRef",
|
||||
"kind": "let",
|
||||
"description": "Obtain a reference to the list HTML element",
|
||||
"type": "null | HTMLDivElement",
|
||||
"type": "HTMLDivElement",
|
||||
"value": "null",
|
||||
"isFunction": false,
|
||||
"isFunctionDeclaration": false,
|
||||
|
@ -1824,7 +1824,7 @@
|
|||
"name": "target",
|
||||
"kind": "let",
|
||||
"description": "Specify an element or list of elements to trigger the context menu.\nIf no element is specified, the context menu applies to the entire window",
|
||||
"type": "null | HTMLElement | HTMLElement[]",
|
||||
"type": "HTMLElement | HTMLElement[]",
|
||||
"value": "null",
|
||||
"isFunction": false,
|
||||
"isFunctionDeclaration": false,
|
||||
|
@ -6700,7 +6700,7 @@
|
|||
"name": "fieldRef",
|
||||
"kind": "let",
|
||||
"description": "Obtain a reference to the field box element",
|
||||
"type": "null | HTMLDivElement",
|
||||
"type": "HTMLDivElement",
|
||||
"value": "null",
|
||||
"isFunction": false,
|
||||
"isFunctionDeclaration": false,
|
||||
|
@ -6711,7 +6711,7 @@
|
|||
"name": "selectionRef",
|
||||
"kind": "let",
|
||||
"description": "Obtain a reference to the selection element",
|
||||
"type": "null | HTMLDivElement",
|
||||
"type": "HTMLDivElement",
|
||||
"value": "null",
|
||||
"isFunction": false,
|
||||
"isFunctionDeclaration": false,
|
||||
|
@ -12806,7 +12806,7 @@
|
|||
"name": "ref",
|
||||
"kind": "let",
|
||||
"description": "Obtain a reference to the input HTML element",
|
||||
"type": "null | HTMLInputElement",
|
||||
"type": "HTMLInputElement",
|
||||
"value": "null",
|
||||
"isFunction": false,
|
||||
"isFunctionDeclaration": false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue