Revert "Refactor prop types to omit redundant null for null | HTMLElement types" (#1008)

#996
This commit is contained in:
Eric Liu 2022-01-14 11:29:37 -10:00 committed by GitHub
commit 653a601f9b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 35 additions and 40 deletions

View file

@ -1604,7 +1604,7 @@
"name": "listRef",
"kind": "let",
"description": "Obtain a reference to the list HTML element",
"type": "HTMLDivElement",
"type": "null | 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": "HTMLElement | HTMLElement[]",
"type": "null | 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": "HTMLDivElement",
"type": "null | HTMLDivElement",
"value": "null",
"isFunction": false,
"isFunctionDeclaration": false,
@ -6711,7 +6711,7 @@
"name": "selectionRef",
"kind": "let",
"description": "Obtain a reference to the selection element",
"type": "HTMLDivElement",
"type": "null | HTMLDivElement",
"value": "null",
"isFunction": false,
"isFunctionDeclaration": false,
@ -12818,7 +12818,7 @@
"name": "ref",
"kind": "let",
"description": "Obtain a reference to the input HTML element",
"type": "HTMLInputElement",
"type": "null | HTMLInputElement",
"value": "null",
"isFunction": false,
"isFunctionDeclaration": false,