diff --git a/README.md b/README.md index 4a8faff..20a9e26 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,6 @@ yarn | Library | Command | `Simple` | `ExampleProps` | | ---------------------------------------------------------------------------- | ---------------------------------------- | -------- | -------------- | -| [typescript-json-schema](https://github.com/YousefED/typescript-json-schema) | `yarn generate:typescript-json-schema` | ✅ | ❌ | +| [typescript-json-schema](https://github.com/YousefED/typescript-json-schema) | `yarn generate:typescript-json-schema` | ✅ | ✅ | | [ts-json-schema-generator](https://github.com/vega/ts-json-schema-generator) | `yarn generate:ts-json-schema-generator` | ✅ | ❌ | | [quicktype](https://github.com/quicktype/quicktype) | `yarn generate:quicktype` | ✅ | ❌ | diff --git a/package.json b/package.json index 7876ba9..438bc5a 100644 --- a/package.json +++ b/package.json @@ -65,6 +65,6 @@ "tsdx": "^0.14.1", "tslib": "^2.0.3", "typescript": "^4.0.3", - "typescript-json-schema": "^0.43.0" + "typescript-json-schema": "^0.44.0" } } diff --git a/schemas/typescript-json-schema-ExampleProps.json b/schemas/typescript-json-schema-ExampleProps.json new file mode 100644 index 0000000..9336207 --- /dev/null +++ b/schemas/typescript-json-schema-ExampleProps.json @@ -0,0 +1,56276 @@ +{ + "allOf": [ + { + "$ref": "#/definitions/React.HTMLProps" + }, + { + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "count": { + "type": "number" + }, + "disabled": { + "type": "boolean" + }, + "names": { + "description": "array of a type!", + "type": "array", + "items": { + "type": "string" + } + }, + "status": { + "description": "string literals to specify exact string values, with a union type to join them together", + "enum": [ + "success", + "waiting" + ], + "type": "string" + }, + "obj": { + "description": "any object as long as you dont use its properties (NOT COMMON but useful as placeholder)", + "type": "object", + "properties": {}, + "additionalProperties": true + }, + "obj2": { + "type": "object", + "properties": {} + }, + "obj3": { + "description": "an object with any number of properties (PREFERRED)", + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "title": { + "type": "string" + } + }, + "required": [ + "id" + ] + }, + "objArr": { + "description": "array of objects! (common)", + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "title": { + "type": "string" + } + }, + "required": [ + "id" + ] + } + }, + "dict1": { + "description": "a dict object with any number of properties of the same type", + "type": "object", + "additionalProperties": { + "type": "number" + } + }, + "dict2": { + "description": "Construct a type with a set of properties K of type T", + "$ref": "#/definitions/Record" + }, + "onSomething": { + "$ref": "#/definitions/Function", + "description": "any function as long as you don't invoke it (not recommended)" + }, + "onClick": { + "description": "function that doesn't take or return anything (VERY COMMON)", + "type": "object" + }, + "onChange": { + "description": "function with named prop (VERY COMMON)", + "type": "object" + }, + "optional": { + "description": "an optional prop (VERY COMMON!)", + "type": "string" + }, + "children": { + "$ref": "#/definitions/React.ReactNode" + }, + "functionChildren": { + "type": "object" + }, + "style": { + "$ref": "#/definitions/React.CSSProperties" + }, + "onChangeFormEvents": { + "type": "object" + }, + "props": { + "allOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string" + } + }, + "required": [ + "id" + ] + }, + { + "$ref": "#/definitions/Pick,HTMLButtonElement>,\"style\"|\"title\"|\"dir\"|\"form\"|\"slot\"|\"disabled\"|\"hidden\"|\"color\"|\"translate\"|\"prefix\"|\"type\"|\"typeof\"|\"key\"|\"autoFocus\"|\"formAction\"|\"formEncType\"|\"formMethod\"|\"formNoValidate\"|\"formTarget\"|\"name\"|\"value\"|\"defaultChecked\"|\"defaultValue\"|\"suppressContentEditableWarning\"|\"suppressHydrationWarning\"|\"accessKey\"|\"className\"|\"contentEditable\"|\"contextMenu\"|\"draggable\"|\"id\"|\"lang\"|\"placeholder\"|\"spellCheck\"|\"tabIndex\"|\"radioGroup\"|\"role\"|\"about\"|\"datatype\"|\"inlist\"|\"property\"|\"resource\"|\"vocab\"|\"autoCapitalize\"|\"autoCorrect\"|\"autoSave\"|\"itemProp\"|\"itemScope\"|\"itemType\"|\"itemID\"|\"itemRef\"|\"results\"|\"security\"|\"unselectable\"|\"inputMode\"|\"is\"|\"aria-activedescendant\"|\"aria-atomic\"|\"aria-autocomplete\"|\"aria-busy\"|\"aria-checked\"|\"aria-colcount\"|\"aria-colindex\"|\"aria-colspan\"|\"aria-controls\"|\"aria-current\"|\"aria-describedby\"|\"aria-details\"|\"aria-disabled\"|\"aria-dropeffect\"|\"aria-errormessage\"|\"aria-expanded\"|\"aria-flowto\"|\"aria-grabbed\"|\"aria-haspopup\"|\"aria-hidden\"|\"aria-invalid\"|\"aria-keyshortcuts\"|\"aria-label\"|\"aria-labelledby\"|\"aria-level\"|\"aria-live\"|\"aria-modal\"|\"aria-multiline\"|\"aria-multiselectable\"|\"aria-orientation\"|\"aria-owns\"|\"aria-placeholder\"|\"aria-posinset\"|\"aria-pressed\"|\"aria-readonly\"|\"aria-relevant\"|\"aria-required\"|\"aria-roledescription\"|\"aria-rowcount\"|\"aria-rowindex\"|\"aria-rowspan\"|\"aria-selected\"|\"aria-setsize\"|\"aria-sort\"|\"aria-valuemax\"|\"aria-valuemin\"|\"aria-valuenow\"|\"aria-valuetext\"|\"children\"|\"dangerouslySetInnerHTML\"|\"onCopy\"|\"onCopyCapture\"|\"onCut\"|\"onCutCapture\"|\"onPaste\"|\"onPasteCapture\"|\"onCompositionEnd\"|\"onCompositionEndCapture\"|\"onCompositionStart\"|\"onCompositionStartCapture\"|\"onCompositionUpdate\"|\"onCompositionUpdateCapture\"|\"onFocus\"|\"onFocusCapture\"|\"onBlur\"|\"onBlurCapture\"|\"onChange\"|\"onChangeCapture\"|\"onBeforeInput\"|\"onBeforeInputCapture\"|\"onInput\"|\"onInputCapture\"|\"onReset\"|\"onResetCapture\"|\"onSubmit\"|\"onSubmitCapture\"|\"onInvalid\"|\"onInvalidCapture\"|\"onLoad\"|\"onLoadCapture\"|\"onError\"|\"onErrorCapture\"|\"onKeyDown\"|\"onKeyDownCapture\"|\"onKeyPress\"|\"onKeyPressCapture\"|\"onKeyUp\"|\"onKeyUpCapture\"|\"onAbort\"|\"onAbortCapture\"|\"onCanPlay\"|\"onCanPlayCapture\"|\"onCanPlayThrough\"|\"onCanPlayThroughCapture\"|\"onDurationChange\"|\"onDurationChangeCapture\"|\"onEmptied\"|\"onEmptiedCapture\"|\"onEncrypted\"|\"onEncryptedCapture\"|\"onEnded\"|\"onEndedCapture\"|\"onLoadedData\"|\"onLoadedDataCapture\"|\"onLoadedMetadata\"|\"onLoadedMetadataCapture\"|\"onLoadStart\"|\"onLoadStartCapture\"|\"onPause\"|\"onPauseCapture\"|\"onPlay\"|\"onPlayCapture\"|\"onPlaying\"|\"onPlayingCapture\"|\"onProgress\"|\"onProgressCapture\"|\"onRateChange\"|\"onRateChangeCapture\"|\"onSeeked\"|\"onSeekedCapture\"|\"onSeeking\"|\"onSeekingCapture\"|\"onStalled\"|\"onStalledCapture\"|\"onSuspend\"|\"onSuspendCapture\"|\"onTimeUpdate\"|\"onTimeUpdateCapture\"|\"onVolumeChange\"|\"onVolumeChangeCapture\"|\"onWaiting\"|\"onWaitingCapture\"|\"onAuxClick\"|\"onAuxClickCapture\"|\"onClick\"|\"onClickCapture\"|\"onContextMenu\"|\"onContextMenuCapture\"|\"onDoubleClick\"|\"onDoubleClickCapture\"|\"onDrag\"|\"onDragCapture\"|\"onDragEnd\"|\"onDragEndCapture\"|\"onDragEnter\"|\"onDragEnterCapture\"|\"onDragExit\"|\"onDragExitCapture\"|\"onDragLeave\"|\"onDragLeaveCapture\"|\"onDragOver\"|\"onDragOverCapture\"|\"onDragStart\"|\"onDragStartCapture\"|\"onDrop\"|\"onDropCapture\"|\"onMouseDown\"|\"onMouseDownCapture\"|\"onMouseEnter\"|\"onMouseLeave\"|\"onMouseMove\"|\"onMouseMoveCapture\"|\"onMouseOut\"|\"onMouseOutCapture\"|\"onMouseOver\"|\"onMouseOverCapture\"|\"onMouseUp\"|\"onMouseUpCapture\"|\"onSelect\"|\"onSelectCapture\"|\"onTouchCancel\"|\"onTouchCancelCapture\"|\"onTouchEnd\"|\"onTouchEndCapture\"|\"onTouchMove\"|\"onTouchMoveCapture\"|\"onTouchStart\"|\"onTouchStartCapture\"|\"onPointerDown\"|\"onPointerDownCapture\"|\"onPointerMove\"|\"onPointerMoveCapture\"|\"onPointerUp\"|\"onPointerUpCapture\"|\"onPointerCancel\"|\"onPointerCancelCapture\"|\"onPointerEnter\"|\"onPointerEnterCapture\"|\"onPointerLeave\"|\"onPointerLeaveCapture\"|\"onPointerOver\"|\"onPointerOverCapture\"|\"onPointerOut\"|\"onPointerOutCapture\"|\"onGotPointerCapture\"|\"onGotPointerCaptureCapture\"|\"onLostPointerCapture\"|\"onLostPointerCaptureCapture\"|\"onScroll\"|\"onScrollCapture\"|\"onWheel\"|\"onWheelCapture\"|\"onAnimationStart\"|\"onAnimationStartCapture\"|\"onAnimationEnd\"|\"onAnimationEndCapture\"|\"onAnimationIteration\"|\"onAnimationIterationCapture\"|\"onTransitionEnd\"|\"onTransitionEndCapture\">" + } + ] + }, + "props2": { + "allOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string" + } + }, + "required": [ + "id" + ] + }, + { + "$ref": "#/definitions/Pick,\"pattern\"|\"style\"|\"title\"|\"cite\"|\"data\"|\"dir\"|\"form\"|\"label\"|\"slot\"|\"span\"|\"summary\"|\"start\"|\"max\"|\"default\"|\"required\"|\"high\"|\"low\"|\"defer\"|\"media\"|\"open\"|\"disabled\"|\"manifest\"|\"hidden\"|\"color\"|\"content\"|\"height\"|\"translate\"|\"width\"|\"multiple\"|\"size\"|\"wrap\"|\"prefix\"|\"src\"|\"type\"|\"typeof\"|\"list\"|\"step\"|\"async\"|\"key\"|\"autoFocus\"|\"formAction\"|\"formEncType\"|\"formMethod\"|\"formNoValidate\"|\"formTarget\"|\"name\"|\"value\"|\"defaultChecked\"|\"defaultValue\"|\"suppressContentEditableWarning\"|\"suppressHydrationWarning\"|\"accessKey\"|\"className\"|\"contentEditable\"|\"contextMenu\"|\"draggable\"|\"id\"|\"lang\"|\"placeholder\"|\"spellCheck\"|\"tabIndex\"|\"radioGroup\"|\"role\"|\"about\"|\"datatype\"|\"inlist\"|\"property\"|\"resource\"|\"vocab\"|\"autoCapitalize\"|\"autoCorrect\"|\"autoSave\"|\"itemProp\"|\"itemScope\"|\"itemType\"|\"itemID\"|\"itemRef\"|\"results\"|\"security\"|\"unselectable\"|\"inputMode\"|\"is\"|\"aria-activedescendant\"|\"aria-atomic\"|\"aria-autocomplete\"|\"aria-busy\"|\"aria-checked\"|\"aria-colcount\"|\"aria-colindex\"|\"aria-colspan\"|\"aria-controls\"|\"aria-current\"|\"aria-describedby\"|\"aria-details\"|\"aria-disabled\"|\"aria-dropeffect\"|\"aria-errormessage\"|\"aria-expanded\"|\"aria-flowto\"|\"aria-grabbed\"|\"aria-haspopup\"|\"aria-hidden\"|\"aria-invalid\"|\"aria-keyshortcuts\"|\"aria-label\"|\"aria-labelledby\"|\"aria-level\"|\"aria-live\"|\"aria-modal\"|\"aria-multiline\"|\"aria-multiselectable\"|\"aria-orientation\"|\"aria-owns\"|\"aria-placeholder\"|\"aria-posinset\"|\"aria-pressed\"|\"aria-readonly\"|\"aria-relevant\"|\"aria-required\"|\"aria-roledescription\"|\"aria-rowcount\"|\"aria-rowindex\"|\"aria-rowspan\"|\"aria-selected\"|\"aria-setsize\"|\"aria-sort\"|\"aria-valuemax\"|\"aria-valuemin\"|\"aria-valuenow\"|\"aria-valuetext\"|\"children\"|\"dangerouslySetInnerHTML\"|\"onCopy\"|\"onCopyCapture\"|\"onCut\"|\"onCutCapture\"|\"onPaste\"|\"onPasteCapture\"|\"onCompositionEnd\"|\"onCompositionEndCapture\"|\"onCompositionStart\"|\"onCompositionStartCapture\"|\"onCompositionUpdate\"|\"onCompositionUpdateCapture\"|\"onFocus\"|\"onFocusCapture\"|\"onBlur\"|\"onBlurCapture\"|\"onChange\"|\"onChangeCapture\"|\"onBeforeInput\"|\"onBeforeInputCapture\"|\"onInput\"|\"onInputCapture\"|\"onReset\"|\"onResetCapture\"|\"onSubmit\"|\"onSubmitCapture\"|\"onInvalid\"|\"onInvalidCapture\"|\"onLoad\"|\"onLoadCapture\"|\"onError\"|\"onErrorCapture\"|\"onKeyDown\"|\"onKeyDownCapture\"|\"onKeyPress\"|\"onKeyPressCapture\"|\"onKeyUp\"|\"onKeyUpCapture\"|\"onAbort\"|\"onAbortCapture\"|\"onCanPlay\"|\"onCanPlayCapture\"|\"onCanPlayThrough\"|\"onCanPlayThroughCapture\"|\"onDurationChange\"|\"onDurationChangeCapture\"|\"onEmptied\"|\"onEmptiedCapture\"|\"onEncrypted\"|\"onEncryptedCapture\"|\"onEnded\"|\"onEndedCapture\"|\"onLoadedData\"|\"onLoadedDataCapture\"|\"onLoadedMetadata\"|\"onLoadedMetadataCapture\"|\"onLoadStart\"|\"onLoadStartCapture\"|\"onPause\"|\"onPauseCapture\"|\"onPlay\"|\"onPlayCapture\"|\"onPlaying\"|\"onPlayingCapture\"|\"onProgress\"|\"onProgressCapture\"|\"onRateChange\"|\"onRateChangeCapture\"|\"onSeeked\"|\"onSeekedCapture\"|\"onSeeking\"|\"onSeekingCapture\"|\"onStalled\"|\"onStalledCapture\"|\"onSuspend\"|\"onSuspendCapture\"|\"onTimeUpdate\"|\"onTimeUpdateCapture\"|\"onVolumeChange\"|\"onVolumeChangeCapture\"|\"onWaiting\"|\"onWaitingCapture\"|\"onAuxClick\"|\"onAuxClickCapture\"|\"onClick\"|\"onClickCapture\"|\"onContextMenu\"|\"onContextMenuCapture\"|\"onDoubleClick\"|\"onDoubleClickCapture\"|\"onDrag\"|\"onDragCapture\"|\"onDragEnd\"|\"onDragEndCapture\"|\"onDragEnter\"|\"onDragEnterCapture\"|\"onDragExit\"|\"onDragExitCapture\"|\"onDragLeave\"|\"onDragLeaveCapture\"|\"onDragOver\"|\"onDragOverCapture\"|\"onDragStart\"|\"onDragStartCapture\"|\"onDrop\"|\"onDropCapture\"|\"onMouseDown\"|\"onMouseDownCapture\"|\"onMouseEnter\"|\"onMouseLeave\"|\"onMouseMove\"|\"onMouseMoveCapture\"|\"onMouseOut\"|\"onMouseOutCapture\"|\"onMouseOver\"|\"onMouseOverCapture\"|\"onMouseUp\"|\"onMouseUpCapture\"|\"onSelect\"|\"onSelectCapture\"|\"onTouchCancel\"|\"onTouchCancelCapture\"|\"onTouchEnd\"|\"onTouchEndCapture\"|\"onTouchMove\"|\"onTouchMoveCapture\"|\"onTouchStart\"|\"onTouchStartCapture\"|\"onPointerDown\"|\"onPointerDownCapture\"|\"onPointerMove\"|\"onPointerMoveCapture\"|\"onPointerUp\"|\"onPointerUpCapture\"|\"onPointerCancel\"|\"onPointerCancelCapture\"|\"onPointerEnter\"|\"onPointerEnterCapture\"|\"onPointerLeave\"|\"onPointerLeaveCapture\"|\"onPointerOver\"|\"onPointerOverCapture\"|\"onPointerOut\"|\"onPointerOutCapture\"|\"onGotPointerCapture\"|\"onGotPointerCaptureCapture\"|\"onLostPointerCapture\"|\"onLostPointerCaptureCapture\"|\"onScroll\"|\"onScrollCapture\"|\"onWheel\"|\"onWheelCapture\"|\"onAnimationStart\"|\"onAnimationStartCapture\"|\"onAnimationEnd\"|\"onAnimationEndCapture\"|\"onAnimationIteration\"|\"onAnimationIterationCapture\"|\"onTransitionEnd\"|\"onTransitionEndCapture\"|\"accept\"|\"acceptCharset\"|\"action\"|\"allowFullScreen\"|\"allowTransparency\"|\"alt\"|\"as\"|\"autoComplete\"|\"autoPlay\"|\"capture\"|\"cellPadding\"|\"cellSpacing\"|\"charSet\"|\"challenge\"|\"checked\"|\"classID\"|\"cols\"|\"colSpan\"|\"controls\"|\"coords\"|\"crossOrigin\"|\"dateTime\"|\"download\"|\"encType\"|\"frameBorder\"|\"headers\"|\"href\"|\"hrefLang\"|\"htmlFor\"|\"httpEquiv\"|\"integrity\"|\"keyParams\"|\"keyType\"|\"kind\"|\"loop\"|\"marginHeight\"|\"marginWidth\"|\"maxLength\"|\"mediaGroup\"|\"method\"|\"min\"|\"minLength\"|\"muted\"|\"nonce\"|\"noValidate\"|\"optimum\"|\"playsInline\"|\"poster\"|\"preload\"|\"readOnly\"|\"rel\"|\"reversed\"|\"rows\"|\"rowSpan\"|\"sandbox\"|\"scope\"|\"scoped\"|\"scrolling\"|\"seamless\"|\"selected\"|\"shape\"|\"sizes\"|\"srcDoc\"|\"srcLang\"|\"srcSet\"|\"target\"|\"useMap\"|\"wmode\">" + }, + { + "type": "object", + "properties": { + "ref": { + "description": "Exclude from T those types that are assignable to U", + "anyOf": [ + { + "$ref": "#/definitions/React.RefObject" + }, + { + "type": [ + "null", + "object" + ] + } + ] + } + } + } + ] + } + }, + "required": [ + "count", + "dict1", + "disabled", + "functionChildren", + "message", + "names", + "obj", + "obj2", + "obj3", + "objArr", + "onChange", + "onClick", + "onSomething", + "props", + "props2", + "status" + ] + } + ], + "definitions": { + "React.HTMLProps": { + "type": "object", + "properties": { + "accept": { + "type": "string" + }, + "acceptCharset": { + "type": "string" + }, + "action": { + "type": "string" + }, + "allowFullScreen": { + "type": "boolean" + }, + "allowTransparency": { + "type": "boolean" + }, + "alt": { + "type": "string" + }, + "as": { + "type": "string" + }, + "async": { + "type": "boolean" + }, + "autoComplete": { + "type": "string" + }, + "autoFocus": { + "type": "boolean" + }, + "autoPlay": { + "type": "boolean" + }, + "capture": { + "type": [ + "string", + "boolean" + ] + }, + "cellPadding": { + "type": [ + "string", + "number" + ] + }, + "cellSpacing": { + "type": [ + "string", + "number" + ] + }, + "charSet": { + "type": "string" + }, + "challenge": { + "type": "string" + }, + "checked": { + "type": "boolean" + }, + "cite": { + "type": "string" + }, + "classID": { + "type": "string" + }, + "cols": { + "type": "number" + }, + "colSpan": { + "type": "number" + }, + "content": { + "type": "string" + }, + "controls": { + "type": "boolean" + }, + "coords": { + "type": "string" + }, + "crossOrigin": { + "type": "string" + }, + "data": { + "type": "string" + }, + "dateTime": { + "type": "string" + }, + "default": { + "type": "boolean" + }, + "defer": { + "type": "boolean" + }, + "disabled": { + "type": "boolean" + }, + "download": {}, + "encType": { + "type": "string" + }, + "form": { + "type": "string" + }, + "formAction": { + "type": "string" + }, + "formEncType": { + "type": "string" + }, + "formMethod": { + "type": "string" + }, + "formNoValidate": { + "type": "boolean" + }, + "formTarget": { + "type": "string" + }, + "frameBorder": { + "type": [ + "string", + "number" + ] + }, + "headers": { + "type": "string" + }, + "height": { + "type": [ + "string", + "number" + ] + }, + "high": { + "type": "number" + }, + "href": { + "type": "string" + }, + "hrefLang": { + "type": "string" + }, + "htmlFor": { + "type": "string" + }, + "httpEquiv": { + "type": "string" + }, + "integrity": { + "type": "string" + }, + "keyParams": { + "type": "string" + }, + "keyType": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "label": { + "type": "string" + }, + "list": { + "type": "string" + }, + "loop": { + "type": "boolean" + }, + "low": { + "type": "number" + }, + "manifest": { + "type": "string" + }, + "marginHeight": { + "type": "number" + }, + "marginWidth": { + "type": "number" + }, + "max": { + "type": [ + "string", + "number" + ] + }, + "maxLength": { + "type": "number" + }, + "media": { + "type": "string" + }, + "mediaGroup": { + "type": "string" + }, + "method": { + "type": "string" + }, + "min": { + "type": [ + "string", + "number" + ] + }, + "minLength": { + "type": "number" + }, + "multiple": { + "type": "boolean" + }, + "muted": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "nonce": { + "type": "string" + }, + "noValidate": { + "type": "boolean" + }, + "open": { + "type": "boolean" + }, + "optimum": { + "type": "number" + }, + "pattern": { + "type": "string" + }, + "placeholder": { + "type": "string" + }, + "playsInline": { + "type": "boolean" + }, + "poster": { + "type": "string" + }, + "preload": { + "type": "string" + }, + "readOnly": { + "type": "boolean" + }, + "rel": { + "type": "string" + }, + "required": { + "type": "boolean" + }, + "reversed": { + "type": "boolean" + }, + "rows": { + "type": "number" + }, + "rowSpan": { + "type": "number" + }, + "sandbox": { + "type": "string" + }, + "scope": { + "type": "string" + }, + "scoped": { + "type": "boolean" + }, + "scrolling": { + "type": "string" + }, + "seamless": { + "type": "boolean" + }, + "selected": { + "type": "boolean" + }, + "shape": { + "type": "string" + }, + "size": { + "type": "number" + }, + "sizes": { + "type": "string" + }, + "span": { + "type": "number" + }, + "src": { + "type": "string" + }, + "srcDoc": { + "type": "string" + }, + "srcLang": { + "type": "string" + }, + "srcSet": { + "type": "string" + }, + "start": { + "type": "number" + }, + "step": { + "type": [ + "string", + "number" + ] + }, + "summary": { + "type": "string" + }, + "target": { + "type": "string" + }, + "type": { + "type": "string" + }, + "useMap": { + "type": "string" + }, + "value": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": [ + "string", + "number" + ] + } + ] + }, + "width": { + "type": [ + "string", + "number" + ] + }, + "wmode": { + "type": "string" + }, + "wrap": { + "type": "string" + }, + "defaultChecked": { + "type": "boolean" + }, + "defaultValue": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": [ + "string", + "number" + ] + } + ] + }, + "suppressContentEditableWarning": { + "type": "boolean" + }, + "suppressHydrationWarning": { + "type": "boolean" + }, + "accessKey": { + "type": "string" + }, + "className": { + "type": "string" + }, + "contentEditable": { + "enum": [ + false, + "false", + "inherit", + true, + "true" + ] + }, + "contextMenu": { + "type": "string" + }, + "dir": { + "type": "string" + }, + "draggable": { + "enum": [ + false, + "false", + true, + "true" + ] + }, + "hidden": { + "type": "boolean" + }, + "id": { + "type": "string" + }, + "lang": { + "type": "string" + }, + "slot": { + "type": "string" + }, + "spellCheck": { + "enum": [ + false, + "false", + true, + "true" + ] + }, + "style": { + "$ref": "#/definitions/React.CSSProperties" + }, + "tabIndex": { + "type": "number" + }, + "title": { + "type": "string" + }, + "translate": { + "enum": [ + "no", + "yes" + ], + "type": "string" + }, + "radioGroup": { + "type": "string" + }, + "role": { + "type": "string" + }, + "about": { + "type": "string" + }, + "datatype": { + "type": "string" + }, + "inlist": {}, + "prefix": { + "type": "string" + }, + "property": { + "type": "string" + }, + "resource": { + "type": "string" + }, + "typeof": { + "type": "string" + }, + "vocab": { + "type": "string" + }, + "autoCapitalize": { + "type": "string" + }, + "autoCorrect": { + "type": "string" + }, + "autoSave": { + "type": "string" + }, + "color": { + "type": "string" + }, + "itemProp": { + "type": "string" + }, + "itemScope": { + "type": "boolean" + }, + "itemType": { + "type": "string" + }, + "itemID": { + "type": "string" + }, + "itemRef": { + "type": "string" + }, + "results": { + "type": "number" + }, + "security": { + "type": "string" + }, + "unselectable": { + "enum": [ + "off", + "on" + ], + "type": "string" + }, + "inputMode": { + "description": "Hints at the type of data that might be entered by the user while editing the element or its contents", + "enum": [ + "decimal", + "email", + "none", + "numeric", + "search", + "tel", + "text", + "url" + ], + "type": "string" + }, + "is": { + "description": "Specify that a standard HTML element should behave like a defined custom built-in element", + "type": "string" + }, + "aria-activedescendant": { + "description": "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.", + "type": "string" + }, + "aria-atomic": { + "description": "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.", + "enum": [ + false, + "false", + true, + "true" + ] + }, + "aria-autocomplete": { + "description": "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.", + "enum": [ + "both", + "inline", + "list", + "none" + ], + "type": "string" + }, + "aria-busy": { + "description": "Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.", + "enum": [ + false, + "false", + true, + "true" + ] + }, + "aria-checked": { + "description": "Indicates the current \"checked\" state of checkboxes, radio buttons, and other widgets.", + "enum": [ + false, + "false", + "mixed", + true, + "true" + ] + }, + "aria-colcount": { + "description": "Defines the total number of columns in a table, grid, or treegrid.", + "type": "number" + }, + "aria-colindex": { + "description": "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.", + "type": "number" + }, + "aria-colspan": { + "description": "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.", + "type": "number" + }, + "aria-controls": { + "description": "Identifies the element (or elements) whose contents or presence are controlled by the current element.", + "type": "string" + }, + "aria-current": { + "description": "Indicates the element that represents the current item within a container or set of related elements.", + "enum": [ + "date", + false, + "false", + "location", + "page", + "step", + "time", + true, + "true" + ] + }, + "aria-describedby": { + "description": "Identifies the element (or elements) that describes the object.", + "type": "string" + }, + "aria-details": { + "description": "Identifies the element that provides a detailed, extended description for the object.", + "type": "string" + }, + "aria-disabled": { + "description": "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.", + "enum": [ + false, + "false", + true, + "true" + ] + }, + "aria-dropeffect": { + "description": "Indicates what functions can be performed when a dragged object is released on the drop target.", + "enum": [ + "copy", + "execute", + "link", + "move", + "none", + "popup" + ], + "type": "string" + }, + "aria-errormessage": { + "description": "Identifies the element that provides an error message for the object.", + "type": "string" + }, + "aria-expanded": { + "description": "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.", + "enum": [ + false, + "false", + true, + "true" + ] + }, + "aria-flowto": { + "description": "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.", + "type": "string" + }, + "aria-grabbed": { + "description": "Indicates an element's \"grabbed\" state in a drag-and-drop operation.", + "enum": [ + false, + "false", + true, + "true" + ] + }, + "aria-haspopup": { + "description": "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.", + "enum": [ + "dialog", + false, + "false", + "grid", + "listbox", + "menu", + "tree", + true, + "true" + ] + }, + "aria-hidden": { + "description": "Indicates whether the element is exposed to an accessibility API.", + "enum": [ + false, + "false", + true, + "true" + ] + }, + "aria-invalid": { + "description": "Indicates the entered value does not conform to the format expected by the application.", + "enum": [ + false, + "false", + "grammar", + "spelling", + true, + "true" + ] + }, + "aria-keyshortcuts": { + "description": "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.", + "type": "string" + }, + "aria-label": { + "description": "Defines a string value that labels the current element.", + "type": "string" + }, + "aria-labelledby": { + "description": "Identifies the element (or elements) that labels the current element.", + "type": "string" + }, + "aria-level": { + "description": "Defines the hierarchical level of an element within a structure.", + "type": "number" + }, + "aria-live": { + "description": "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.", + "enum": [ + "assertive", + "off", + "polite" + ], + "type": "string" + }, + "aria-modal": { + "description": "Indicates whether an element is modal when displayed.", + "enum": [ + false, + "false", + true, + "true" + ] + }, + "aria-multiline": { + "description": "Indicates whether a text box accepts multiple lines of input or only a single line.", + "enum": [ + false, + "false", + true, + "true" + ] + }, + "aria-multiselectable": { + "description": "Indicates that the user may select more than one item from the current selectable descendants.", + "enum": [ + false, + "false", + true, + "true" + ] + }, + "aria-orientation": { + "description": "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.", + "enum": [ + "horizontal", + "vertical" + ], + "type": "string" + }, + "aria-owns": { + "description": "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.", + "type": "string" + }, + "aria-placeholder": { + "description": "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.", + "type": "string" + }, + "aria-posinset": { + "description": "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.", + "type": "number" + }, + "aria-pressed": { + "description": "Indicates the current \"pressed\" state of toggle buttons.", + "enum": [ + false, + "false", + "mixed", + true, + "true" + ] + }, + "aria-readonly": { + "description": "Indicates that the element is not editable, but is otherwise operable.", + "enum": [ + false, + "false", + true, + "true" + ] + }, + "aria-relevant": { + "description": "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.", + "enum": [ + "additions", + "additions removals", + "additions text", + "all", + "removals", + "removals additions", + "removals text", + "text", + "text additions", + "text removals" + ], + "type": "string" + }, + "aria-required": { + "description": "Indicates that user input is required on the element before a form may be submitted.", + "enum": [ + false, + "false", + true, + "true" + ] + }, + "aria-roledescription": { + "description": "Defines a human-readable, author-localized description for the role of an element.", + "type": "string" + }, + "aria-rowcount": { + "description": "Defines the total number of rows in a table, grid, or treegrid.", + "type": "number" + }, + "aria-rowindex": { + "description": "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.", + "type": "number" + }, + "aria-rowspan": { + "description": "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.", + "type": "number" + }, + "aria-selected": { + "description": "Indicates the current \"selected\" state of various widgets.", + "enum": [ + false, + "false", + true, + "true" + ] + }, + "aria-setsize": { + "description": "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.", + "type": "number" + }, + "aria-sort": { + "description": "Indicates if items in a table or grid are sorted in ascending or descending order.", + "enum": [ + "ascending", + "descending", + "none", + "other" + ], + "type": "string" + }, + "aria-valuemax": { + "description": "Defines the maximum allowed value for a range widget.", + "type": "number" + }, + "aria-valuemin": { + "description": "Defines the minimum allowed value for a range widget.", + "type": "number" + }, + "aria-valuenow": { + "description": "Defines the current value for a range widget.", + "type": "number" + }, + "aria-valuetext": { + "description": "Defines the human readable text alternative of aria-valuenow for a range widget.", + "type": "string" + }, + "children": { + "$ref": "#/definitions/React.ReactNode" + }, + "dangerouslySetInnerHTML": { + "type": "object", + "properties": { + "__html": { + "type": "string" + } + }, + "required": [ + "__html" + ] + }, + "onCopy": { + "type": "object" + }, + "onCopyCapture": { + "type": "object" + }, + "onCut": { + "type": "object" + }, + "onCutCapture": { + "type": "object" + }, + "onPaste": { + "type": "object" + }, + "onPasteCapture": { + "type": "object" + }, + "onCompositionEnd": { + "type": "object" + }, + "onCompositionEndCapture": { + "type": "object" + }, + "onCompositionStart": { + "type": "object" + }, + "onCompositionStartCapture": { + "type": "object" + }, + "onCompositionUpdate": { + "type": "object" + }, + "onCompositionUpdateCapture": { + "type": "object" + }, + "onFocus": { + "type": "object" + }, + "onFocusCapture": { + "type": "object" + }, + "onBlur": { + "type": "object" + }, + "onBlurCapture": { + "type": "object" + }, + "onChange": { + "type": "object" + }, + "onChangeCapture": { + "type": "object" + }, + "onBeforeInput": { + "type": "object" + }, + "onBeforeInputCapture": { + "type": "object" + }, + "onInput": { + "type": "object" + }, + "onInputCapture": { + "type": "object" + }, + "onReset": { + "type": "object" + }, + "onResetCapture": { + "type": "object" + }, + "onSubmit": { + "type": "object" + }, + "onSubmitCapture": { + "type": "object" + }, + "onInvalid": { + "type": "object" + }, + "onInvalidCapture": { + "type": "object" + }, + "onLoad": { + "type": "object" + }, + "onLoadCapture": { + "type": "object" + }, + "onError": { + "type": "object" + }, + "onErrorCapture": { + "type": "object" + }, + "onKeyDown": { + "type": "object" + }, + "onKeyDownCapture": { + "type": "object" + }, + "onKeyPress": { + "type": "object" + }, + "onKeyPressCapture": { + "type": "object" + }, + "onKeyUp": { + "type": "object" + }, + "onKeyUpCapture": { + "type": "object" + }, + "onAbort": { + "type": "object" + }, + "onAbortCapture": { + "type": "object" + }, + "onCanPlay": { + "type": "object" + }, + "onCanPlayCapture": { + "type": "object" + }, + "onCanPlayThrough": { + "type": "object" + }, + "onCanPlayThroughCapture": { + "type": "object" + }, + "onDurationChange": { + "type": "object" + }, + "onDurationChangeCapture": { + "type": "object" + }, + "onEmptied": { + "type": "object" + }, + "onEmptiedCapture": { + "type": "object" + }, + "onEncrypted": { + "type": "object" + }, + "onEncryptedCapture": { + "type": "object" + }, + "onEnded": { + "type": "object" + }, + "onEndedCapture": { + "type": "object" + }, + "onLoadedData": { + "type": "object" + }, + "onLoadedDataCapture": { + "type": "object" + }, + "onLoadedMetadata": { + "type": "object" + }, + "onLoadedMetadataCapture": { + "type": "object" + }, + "onLoadStart": { + "type": "object" + }, + "onLoadStartCapture": { + "type": "object" + }, + "onPause": { + "type": "object" + }, + "onPauseCapture": { + "type": "object" + }, + "onPlay": { + "type": "object" + }, + "onPlayCapture": { + "type": "object" + }, + "onPlaying": { + "type": "object" + }, + "onPlayingCapture": { + "type": "object" + }, + "onProgress": { + "type": "object" + }, + "onProgressCapture": { + "type": "object" + }, + "onRateChange": { + "type": "object" + }, + "onRateChangeCapture": { + "type": "object" + }, + "onSeeked": { + "type": "object" + }, + "onSeekedCapture": { + "type": "object" + }, + "onSeeking": { + "type": "object" + }, + "onSeekingCapture": { + "type": "object" + }, + "onStalled": { + "type": "object" + }, + "onStalledCapture": { + "type": "object" + }, + "onSuspend": { + "type": "object" + }, + "onSuspendCapture": { + "type": "object" + }, + "onTimeUpdate": { + "type": "object" + }, + "onTimeUpdateCapture": { + "type": "object" + }, + "onVolumeChange": { + "type": "object" + }, + "onVolumeChangeCapture": { + "type": "object" + }, + "onWaiting": { + "type": "object" + }, + "onWaitingCapture": { + "type": "object" + }, + "onAuxClick": { + "type": "object" + }, + "onAuxClickCapture": { + "type": "object" + }, + "onClick": { + "type": "object" + }, + "onClickCapture": { + "type": "object" + }, + "onContextMenu": { + "type": "object" + }, + "onContextMenuCapture": { + "type": "object" + }, + "onDoubleClick": { + "type": "object" + }, + "onDoubleClickCapture": { + "type": "object" + }, + "onDrag": { + "type": "object" + }, + "onDragCapture": { + "type": "object" + }, + "onDragEnd": { + "type": "object" + }, + "onDragEndCapture": { + "type": "object" + }, + "onDragEnter": { + "type": "object" + }, + "onDragEnterCapture": { + "type": "object" + }, + "onDragExit": { + "type": "object" + }, + "onDragExitCapture": { + "type": "object" + }, + "onDragLeave": { + "type": "object" + }, + "onDragLeaveCapture": { + "type": "object" + }, + "onDragOver": { + "type": "object" + }, + "onDragOverCapture": { + "type": "object" + }, + "onDragStart": { + "type": "object" + }, + "onDragStartCapture": { + "type": "object" + }, + "onDrop": { + "type": "object" + }, + "onDropCapture": { + "type": "object" + }, + "onMouseDown": { + "type": "object" + }, + "onMouseDownCapture": { + "type": "object" + }, + "onMouseEnter": { + "type": "object" + }, + "onMouseLeave": { + "type": "object" + }, + "onMouseMove": { + "type": "object" + }, + "onMouseMoveCapture": { + "type": "object" + }, + "onMouseOut": { + "type": "object" + }, + "onMouseOutCapture": { + "type": "object" + }, + "onMouseOver": { + "type": "object" + }, + "onMouseOverCapture": { + "type": "object" + }, + "onMouseUp": { + "type": "object" + }, + "onMouseUpCapture": { + "type": "object" + }, + "onSelect": { + "type": "object" + }, + "onSelectCapture": { + "type": "object" + }, + "onTouchCancel": { + "type": "object" + }, + "onTouchCancelCapture": { + "type": "object" + }, + "onTouchEnd": { + "type": "object" + }, + "onTouchEndCapture": { + "type": "object" + }, + "onTouchMove": { + "type": "object" + }, + "onTouchMoveCapture": { + "type": "object" + }, + "onTouchStart": { + "type": "object" + }, + "onTouchStartCapture": { + "type": "object" + }, + "onPointerDown": { + "type": "object" + }, + "onPointerDownCapture": { + "type": "object" + }, + "onPointerMove": { + "type": "object" + }, + "onPointerMoveCapture": { + "type": "object" + }, + "onPointerUp": { + "type": "object" + }, + "onPointerUpCapture": { + "type": "object" + }, + "onPointerCancel": { + "type": "object" + }, + "onPointerCancelCapture": { + "type": "object" + }, + "onPointerEnter": { + "type": "object" + }, + "onPointerEnterCapture": { + "type": "object" + }, + "onPointerLeave": { + "type": "object" + }, + "onPointerLeaveCapture": { + "type": "object" + }, + "onPointerOver": { + "type": "object" + }, + "onPointerOverCapture": { + "type": "object" + }, + "onPointerOut": { + "type": "object" + }, + "onPointerOutCapture": { + "type": "object" + }, + "onGotPointerCapture": { + "type": "object" + }, + "onGotPointerCaptureCapture": { + "type": "object" + }, + "onLostPointerCapture": { + "type": "object" + }, + "onLostPointerCaptureCapture": { + "type": "object" + }, + "onScroll": { + "type": "object" + }, + "onScrollCapture": { + "type": "object" + }, + "onWheel": { + "type": "object" + }, + "onWheelCapture": { + "type": "object" + }, + "onAnimationStart": { + "type": "object" + }, + "onAnimationStartCapture": { + "type": "object" + }, + "onAnimationEnd": { + "type": "object" + }, + "onAnimationEndCapture": { + "type": "object" + }, + "onAnimationIteration": { + "type": "object" + }, + "onAnimationIterationCapture": { + "type": "object" + }, + "onTransitionEnd": { + "type": "object" + }, + "onTransitionEndCapture": { + "type": "object" + }, + "ref": { + "anyOf": [ + { + "$ref": "#/definitions/React.RefObject" + }, + { + "type": [ + "null", + "string", + "object" + ] + } + ] + }, + "key": { + "type": [ + "null", + "string", + "number" + ] + } + } + }, + "React.CSSProperties": { + "type": "object", + "properties": { + "alignContent": { + "description": "The CSS **`align-content`** property sets the distribution of space between and around content items along a flexbox's cross-axis or a grid's block axis.\n\n**Syntax**: `normal | | | ? `\n\n**Initial value**: `normal`\n\n---\n\n_Supported in Flex Layout_\n\n| Chrome | Firefox | Safari | Edge | IE |\n| :------: | :-----: | :-------: | :----: | :----: |\n| **29** | **28** | **9** | **12** | **11** |\n| 21 _-x-_ | | 6.1 _-x-_ | | |\n\n---\n\n_Supported in Grid Layout_\n\n| Chrome | Firefox | Safari | Edge | IE |\n| :----: | :-----: | :------: | :----: | :-: |\n| **57** | **52** | **10.1** | **16** | No |\n\n---", + "anyOf": [ + { + "allOf": [ + { + "type": "object", + "properties": {} + }, + { + "type": "string" + } + ] + }, + { + "enum": [ + "-moz-initial", + "baseline", + "center", + "end", + "flex-end", + "flex-start", + "inherit", + "initial", + "normal", + "revert", + "space-around", + "space-between", + "space-evenly", + "start", + "stretch", + "unset" + ], + "type": "string" + } + ] + }, + "alignItems": { + "description": "The CSS **`align-items`** property sets the `align-self` value on all direct children as a group. In Flexbox, it controls the alignment of items on the Cross Axis. In Grid Layout, it controls the alignment of items on the Block Axis within their grid area.\n\n**Syntax**: `normal | stretch | | [ ? ]`\n\n**Initial value**: `normal`\n\n---\n\n_Supported in Flex Layout_\n\n| Chrome | Firefox | Safari | Edge | IE |\n| :------: | :-----: | :-----: | :----: | :----: |\n| **52** | **20** | **9** | **12** | **11** |\n| 21 _-x-_ | | 7 _-x-_ | | |\n\n---\n\n_Supported in Grid Layout_\n\n| Chrome | Firefox | Safari | Edge | IE |\n| :----: | :-----: | :------: | :----: | :-: |\n| **57** | **52** | **10.1** | **16** | No |\n\n---", + "anyOf": [ + { + "allOf": [ + { + "type": "object", + "properties": {} + }, + { + "type": "string" + } + ] + }, + { + "enum": [ + "-moz-initial", + "baseline", + "center", + "end", + "flex-end", + "flex-start", + "inherit", + "initial", + "normal", + "revert", + "self-end", + "self-start", + "start", + "stretch", + "unset" + ], + "type": "string" + } + ] + }, + "alignSelf": { + "description": "The **`align-self`** CSS property overrides a grid or flex item's `align-items` value. In Grid, it aligns the item inside the grid area. In Flexbox, it aligns the item on the cross axis.\n\n**Syntax**: `auto | normal | stretch | | ? `\n\n**Initial value**: `auto`\n\n---\n\n_Supported in Flex Layout_\n\n| Chrome | Firefox | Safari | Edge | IE |\n| :------: | :-----: | :-------: | :----: | :----: |\n| **36** | **20** | **9** | **12** | **11** |\n| 21 _-x-_ | | 6.1 _-x-_ | | |\n\n---\n\n_Supported in Grid Layout_\n\n| Chrome | Firefox | Safari | Edge | IE |\n| :----: | :-----: | :------: | :----: | :----------: |\n| **57** | **52** | **10.1** | **16** | **10** _-x-_ |\n\n---", + "anyOf": [ + { + "allOf": [ + { + "type": "object", + "properties": {} + }, + { + "type": "string" + } + ] + }, + { + "enum": [ + "-moz-initial", + "auto", + "baseline", + "center", + "end", + "flex-end", + "flex-start", + "inherit", + "initial", + "normal", + "revert", + "self-end", + "self-start", + "start", + "stretch", + "unset" + ], + "type": "string" + } + ] + }, + "animationDelay": { + "description": "The **`animation-delay`** CSS property specifies the amount of time to wait from applying the animation to an element before beginning to perform the animation. The animation can start later, immediately from its beginning, or immediately and partway through the animation.\n\n**Syntax**: `