@types/react 16.14.10 → 16.14.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
react v16.14/index.d.ts CHANGED
@@ -130,13 +130,13 @@ declare namespace React {
130
130
  * inside your component or have to validate them.
131
131
  */
132
132
  interface Attributes {
133
- key?: Key | null;
133
+ key?: Key | null | undefined;
134
134
  }
135
135
  interface RefAttributes<T> extends Attributes {
136
- ref?: Ref<T>;
136
+ ref?: Ref<T> | undefined;
137
137
  }
138
138
  interface ClassAttributes<T> extends Attributes {
139
- ref?: LegacyRef<T>;
139
+ ref?: LegacyRef<T> | undefined;
140
140
  }
141
141
 
142
142
  interface ReactElement<P = any, T extends string | JSXElementConstructor<any> = string | JSXElementConstructor<any>> {
@@ -156,12 +156,12 @@ declare namespace React {
156
156
  type SFCElement<P> = FunctionComponentElement<P>;
157
157
 
158
158
  interface FunctionComponentElement<P> extends ReactElement<P, FunctionComponent<P>> {
159
- ref?: 'ref' extends keyof P ? P extends { ref?: infer R } ? R : never : never;
159
+ ref?: ('ref' extends keyof P ? P extends { ref?: infer R | undefined } ? R : never : never) | undefined;
160
160
  }
161
161
 
162
162
  type CElement<P, T extends Component<P, ComponentState>> = ComponentElement<P, T>;
163
163
  interface ComponentElement<P, T extends Component<P, ComponentState>> extends ReactElement<P, ComponentClass<P>> {
164
- ref?: LegacyRef<T>;
164
+ ref?: LegacyRef<T> | undefined;
165
165
  }
166
166
 
167
167
  type ClassicElement<P> = CElement<P, ClassicComponent<P, ComponentState>>;
@@ -331,7 +331,7 @@ declare namespace React {
331
331
  // Context via RenderProps
332
332
  interface ProviderProps<T> {
333
333
  value: T;
334
- children?: ReactNode;
334
+ children?: ReactNode | undefined;
335
335
  }
336
336
 
337
337
  interface ConsumerProps<T> {
@@ -357,11 +357,11 @@ declare namespace React {
357
357
  }
358
358
 
359
359
  interface NamedExoticComponent<P = {}> extends ExoticComponent<P> {
360
- displayName?: string;
360
+ displayName?: string | undefined;
361
361
  }
362
362
 
363
363
  interface ProviderExoticComponent<P> extends ExoticComponent<P> {
364
- propTypes?: WeakValidationMap<P>;
364
+ propTypes?: WeakValidationMap<P> | undefined;
365
365
  }
366
366
 
367
367
  type ContextType<C extends Context<any>> = C extends Context<infer T> ? T : never;
@@ -373,7 +373,7 @@ declare namespace React {
373
373
  interface Context<T> {
374
374
  Provider: Provider<T>;
375
375
  Consumer: Consumer<T>;
376
- displayName?: string;
376
+ displayName?: string | undefined;
377
377
  }
378
378
  function createContext<T>(
379
379
  // If you thought this should be optional, see
@@ -384,11 +384,11 @@ declare namespace React {
384
384
  function isValidElement<P>(object: {} | null | undefined): object is ReactElement<P>;
385
385
 
386
386
  const Children: ReactChildren;
387
- const Fragment: ExoticComponent<{ children?: ReactNode }>;
388
- const StrictMode: ExoticComponent<{ children?: ReactNode }>;
387
+ const Fragment: ExoticComponent<{ children?: ReactNode | undefined }>;
388
+ const StrictMode: ExoticComponent<{ children?: ReactNode | undefined }>;
389
389
 
390
390
  interface SuspenseProps {
391
- children?: ReactNode;
391
+ children?: ReactNode | undefined;
392
392
 
393
393
  /** A fallback react tree to show when a Suspense child (like React.lazy) suspends */
394
394
  fallback: NonNullable<ReactNode>|null;
@@ -413,7 +413,7 @@ declare namespace React {
413
413
  interactions: Set<SchedulerInteraction>,
414
414
  ) => void;
415
415
  interface ProfilerProps {
416
- children?: ReactNode;
416
+ children?: ReactNode | undefined;
417
417
  id: string;
418
418
  onRender: ProfilerOnRenderCallback;
419
419
  }
@@ -451,7 +451,7 @@ declare namespace React {
451
451
  *
452
452
  * @see https://reactjs.org/docs/context.html#classcontexttype
453
453
  */
454
- static contextType?: Context<any>;
454
+ static contextType?: Context<any> | undefined;
455
455
 
456
456
  /**
457
457
  * If using the new style context, re-declare this in your class to be the
@@ -494,7 +494,7 @@ declare namespace React {
494
494
  // always pass children as variadic arguments to `createElement`.
495
495
  // In the future, if we can define its call signature conditionally
496
496
  // on the existence of `children` in `P`, then we should remove this.
497
- readonly props: Readonly<P> & Readonly<{ children?: ReactNode }>;
497
+ readonly props: Readonly<P> & Readonly<{ children?: ReactNode | undefined }>;
498
498
  state: Readonly<S>;
499
499
  /**
500
500
  * @deprecated
@@ -541,35 +541,35 @@ declare namespace React {
541
541
 
542
542
  interface FunctionComponent<P = {}> {
543
543
  (props: PropsWithChildren<P>, context?: any): ReactElement<any, any> | null;
544
- propTypes?: WeakValidationMap<P>;
545
- contextTypes?: ValidationMap<any>;
546
- defaultProps?: Partial<P>;
547
- displayName?: string;
544
+ propTypes?: WeakValidationMap<P> | undefined;
545
+ contextTypes?: ValidationMap<any> | undefined;
546
+ defaultProps?: Partial<P> | undefined;
547
+ displayName?: string | undefined;
548
548
  }
549
549
 
550
550
  type VFC<P = {}> = VoidFunctionComponent<P>;
551
551
 
552
552
  interface VoidFunctionComponent<P = {}> {
553
553
  (props: P, context?: any): ReactElement<any, any> | null;
554
- propTypes?: WeakValidationMap<P>;
555
- contextTypes?: ValidationMap<any>;
556
- defaultProps?: Partial<P>;
557
- displayName?: string;
554
+ propTypes?: WeakValidationMap<P> | undefined;
555
+ contextTypes?: ValidationMap<any> | undefined;
556
+ defaultProps?: Partial<P> | undefined;
557
+ displayName?: string | undefined;
558
558
  }
559
559
 
560
560
  interface ForwardRefRenderFunction<T, P = {}> {
561
561
  (props: PropsWithChildren<P>, ref: ((instance: T | null) => void) | MutableRefObject<T | null> | null): ReactElement | null;
562
- displayName?: string;
562
+ displayName?: string | undefined;
563
563
  // explicit rejected with `never` required due to
564
564
  // https://github.com/microsoft/TypeScript/issues/36826
565
565
  /**
566
566
  * defaultProps are not supported on render functions
567
567
  */
568
- defaultProps?: never;
568
+ defaultProps?: never | undefined;
569
569
  /**
570
570
  * propTypes are not supported on render functions
571
571
  */
572
- propTypes?: never;
572
+ propTypes?: never | undefined;
573
573
  }
574
574
 
575
575
  /**
@@ -580,12 +580,12 @@ declare namespace React {
580
580
 
581
581
  interface ComponentClass<P = {}, S = ComponentState> extends StaticLifecycle<P, S> {
582
582
  new (props: P, context?: any): Component<P, S>;
583
- propTypes?: WeakValidationMap<P>;
584
- contextType?: Context<any>;
585
- contextTypes?: ValidationMap<any>;
586
- childContextTypes?: ValidationMap<any>;
587
- defaultProps?: Partial<P>;
588
- displayName?: string;
583
+ propTypes?: WeakValidationMap<P> | undefined;
584
+ contextType?: Context<any> | undefined;
585
+ contextTypes?: ValidationMap<any> | undefined;
586
+ childContextTypes?: ValidationMap<any> | undefined;
587
+ defaultProps?: Partial<P> | undefined;
588
+ displayName?: string | undefined;
589
589
  }
590
590
 
591
591
  interface ClassicComponentClass<P = {}> extends ComponentClass<P> {
@@ -639,8 +639,8 @@ declare namespace React {
639
639
 
640
640
  // Unfortunately, we have no way of declaring that the component constructor must implement this
641
641
  interface StaticLifecycle<P, S> {
642
- getDerivedStateFromProps?: GetDerivedStateFromProps<P, S>;
643
- getDerivedStateFromError?: GetDerivedStateFromError<P, S>;
642
+ getDerivedStateFromProps?: GetDerivedStateFromProps<P, S> | undefined;
643
+ getDerivedStateFromError?: GetDerivedStateFromError<P, S> | undefined;
644
644
  }
645
645
 
646
646
  type GetDerivedStateFromProps<P, S> =
@@ -769,15 +769,15 @@ declare namespace React {
769
769
  }
770
770
 
771
771
  interface Mixin<P, S> extends ComponentLifecycle<P, S> {
772
- mixins?: Array<Mixin<P, S>>;
772
+ mixins?: Array<Mixin<P, S>> | undefined;
773
773
  statics?: {
774
774
  [key: string]: any;
775
- };
775
+ } | undefined;
776
776
 
777
- displayName?: string;
778
- propTypes?: ValidationMap<any>;
779
- contextTypes?: ValidationMap<any>;
780
- childContextTypes?: ValidationMap<any>;
777
+ displayName?: string | undefined;
778
+ propTypes?: ValidationMap<any> | undefined;
779
+ contextTypes?: ValidationMap<any> | undefined;
780
+ childContextTypes?: ValidationMap<any> | undefined;
781
781
 
782
782
  getDefaultProps?(): P;
783
783
  getInitialState?(): S;
@@ -794,8 +794,8 @@ declare namespace React {
794
794
  // will show `ForwardRef(${Component.displayName || Component.name})` in devtools by default,
795
795
  // but can be given its own specific name
796
796
  interface ForwardRefExoticComponent<P> extends NamedExoticComponent<P> {
797
- defaultProps?: Partial<P>;
798
- propTypes?: WeakValidationMap<P>;
797
+ defaultProps?: Partial<P> | undefined;
798
+ propTypes?: WeakValidationMap<P> | undefined;
799
799
  }
800
800
 
801
801
  function forwardRef<T, P = {}>(render: ForwardRefRenderFunction<T, P>): ForwardRefExoticComponent<PropsWithoutRef<P> & RefAttributes<T>>;
@@ -811,14 +811,14 @@ declare namespace React {
811
811
  type PropsWithRef<P> =
812
812
  // Just "P extends { ref?: infer R }" looks sufficient, but R will infer as {} if P is {}.
813
813
  'ref' extends keyof P
814
- ? P extends { ref?: infer R }
814
+ ? P extends { ref?: infer R | undefined }
815
815
  ? string extends R
816
- ? PropsWithoutRef<P> & { ref?: Exclude<R, string> }
816
+ ? PropsWithoutRef<P> & { ref?: Exclude<R, string> | undefined }
817
817
  : P
818
818
  : P
819
819
  : P;
820
820
 
821
- type PropsWithChildren<P> = P & { children?: ReactNode };
821
+ type PropsWithChildren<P> = P & { children?: ReactNode | undefined };
822
822
 
823
823
  /**
824
824
  * NOTE: prefer ComponentPropsWithRef, if the ref is forwarded,
@@ -837,6 +837,14 @@ declare namespace React {
837
837
  type ComponentPropsWithoutRef<T extends ElementType> =
838
838
  PropsWithoutRef<ComponentProps<T>>;
839
839
 
840
+ type ComponentRef<T extends ElementType> = T extends NamedExoticComponent<
841
+ ComponentPropsWithoutRef<T> & RefAttributes<infer Method>
842
+ >
843
+ ? Method
844
+ : ComponentPropsWithRef<T> extends RefAttributes<infer Method>
845
+ ? Method
846
+ : never;
847
+
840
848
  // will show `Memo(${Component.displayName || Component.name})` in devtools by default,
841
849
  // but can be given its own specific name
842
850
  type MemoExoticComponent<T extends ComponentType<any>> = NamedExoticComponent<ComponentPropsWithRef<T>> & {
@@ -1326,9 +1334,9 @@ declare namespace React {
1326
1334
  * ```
1327
1335
  */
1328
1336
  interface Props<T> {
1329
- children?: ReactNode;
1330
- key?: Key;
1331
- ref?: LegacyRef<T>;
1337
+ children?: ReactNode | undefined;
1338
+ key?: Key | undefined;
1339
+ ref?: LegacyRef<T> | undefined;
1332
1340
  }
1333
1341
 
1334
1342
  interface HTMLProps<T> extends AllHTMLAttributes<T>, ClassAttributes<T> {
@@ -1340,200 +1348,200 @@ declare namespace React {
1340
1348
  }
1341
1349
 
1342
1350
  interface DOMAttributes<T> {
1343
- children?: ReactNode;
1351
+ children?: ReactNode | undefined;
1344
1352
  dangerouslySetInnerHTML?: {
1345
1353
  __html: string;
1346
- };
1354
+ } | undefined;
1347
1355
 
1348
1356
  // Clipboard Events
1349
- onCopy?: ClipboardEventHandler<T>;
1350
- onCopyCapture?: ClipboardEventHandler<T>;
1351
- onCut?: ClipboardEventHandler<T>;
1352
- onCutCapture?: ClipboardEventHandler<T>;
1353
- onPaste?: ClipboardEventHandler<T>;
1354
- onPasteCapture?: ClipboardEventHandler<T>;
1357
+ onCopy?: ClipboardEventHandler<T> | undefined;
1358
+ onCopyCapture?: ClipboardEventHandler<T> | undefined;
1359
+ onCut?: ClipboardEventHandler<T> | undefined;
1360
+ onCutCapture?: ClipboardEventHandler<T> | undefined;
1361
+ onPaste?: ClipboardEventHandler<T> | undefined;
1362
+ onPasteCapture?: ClipboardEventHandler<T> | undefined;
1355
1363
 
1356
1364
  // Composition Events
1357
- onCompositionEnd?: CompositionEventHandler<T>;
1358
- onCompositionEndCapture?: CompositionEventHandler<T>;
1359
- onCompositionStart?: CompositionEventHandler<T>;
1360
- onCompositionStartCapture?: CompositionEventHandler<T>;
1361
- onCompositionUpdate?: CompositionEventHandler<T>;
1362
- onCompositionUpdateCapture?: CompositionEventHandler<T>;
1365
+ onCompositionEnd?: CompositionEventHandler<T> | undefined;
1366
+ onCompositionEndCapture?: CompositionEventHandler<T> | undefined;
1367
+ onCompositionStart?: CompositionEventHandler<T> | undefined;
1368
+ onCompositionStartCapture?: CompositionEventHandler<T> | undefined;
1369
+ onCompositionUpdate?: CompositionEventHandler<T> | undefined;
1370
+ onCompositionUpdateCapture?: CompositionEventHandler<T> | undefined;
1363
1371
 
1364
1372
  // Focus Events
1365
- onFocus?: FocusEventHandler<T>;
1366
- onFocusCapture?: FocusEventHandler<T>;
1367
- onBlur?: FocusEventHandler<T>;
1368
- onBlurCapture?: FocusEventHandler<T>;
1373
+ onFocus?: FocusEventHandler<T> | undefined;
1374
+ onFocusCapture?: FocusEventHandler<T> | undefined;
1375
+ onBlur?: FocusEventHandler<T> | undefined;
1376
+ onBlurCapture?: FocusEventHandler<T> | undefined;
1369
1377
 
1370
1378
  // Form Events
1371
- onChange?: FormEventHandler<T>;
1372
- onChangeCapture?: FormEventHandler<T>;
1373
- onBeforeInput?: FormEventHandler<T>;
1374
- onBeforeInputCapture?: FormEventHandler<T>;
1375
- onInput?: FormEventHandler<T>;
1376
- onInputCapture?: FormEventHandler<T>;
1377
- onReset?: FormEventHandler<T>;
1378
- onResetCapture?: FormEventHandler<T>;
1379
- onSubmit?: FormEventHandler<T>;
1380
- onSubmitCapture?: FormEventHandler<T>;
1381
- onInvalid?: FormEventHandler<T>;
1382
- onInvalidCapture?: FormEventHandler<T>;
1379
+ onChange?: FormEventHandler<T> | undefined;
1380
+ onChangeCapture?: FormEventHandler<T> | undefined;
1381
+ onBeforeInput?: FormEventHandler<T> | undefined;
1382
+ onBeforeInputCapture?: FormEventHandler<T> | undefined;
1383
+ onInput?: FormEventHandler<T> | undefined;
1384
+ onInputCapture?: FormEventHandler<T> | undefined;
1385
+ onReset?: FormEventHandler<T> | undefined;
1386
+ onResetCapture?: FormEventHandler<T> | undefined;
1387
+ onSubmit?: FormEventHandler<T> | undefined;
1388
+ onSubmitCapture?: FormEventHandler<T> | undefined;
1389
+ onInvalid?: FormEventHandler<T> | undefined;
1390
+ onInvalidCapture?: FormEventHandler<T> | undefined;
1383
1391
 
1384
1392
  // Image Events
1385
- onLoad?: ReactEventHandler<T>;
1386
- onLoadCapture?: ReactEventHandler<T>;
1387
- onError?: ReactEventHandler<T>; // also a Media Event
1388
- onErrorCapture?: ReactEventHandler<T>; // also a Media Event
1393
+ onLoad?: ReactEventHandler<T> | undefined;
1394
+ onLoadCapture?: ReactEventHandler<T> | undefined;
1395
+ onError?: ReactEventHandler<T> | undefined; // also a Media Event
1396
+ onErrorCapture?: ReactEventHandler<T> | undefined; // also a Media Event
1389
1397
 
1390
1398
  // Keyboard Events
1391
- onKeyDown?: KeyboardEventHandler<T>;
1392
- onKeyDownCapture?: KeyboardEventHandler<T>;
1393
- onKeyPress?: KeyboardEventHandler<T>;
1394
- onKeyPressCapture?: KeyboardEventHandler<T>;
1395
- onKeyUp?: KeyboardEventHandler<T>;
1396
- onKeyUpCapture?: KeyboardEventHandler<T>;
1399
+ onKeyDown?: KeyboardEventHandler<T> | undefined;
1400
+ onKeyDownCapture?: KeyboardEventHandler<T> | undefined;
1401
+ onKeyPress?: KeyboardEventHandler<T> | undefined;
1402
+ onKeyPressCapture?: KeyboardEventHandler<T> | undefined;
1403
+ onKeyUp?: KeyboardEventHandler<T> | undefined;
1404
+ onKeyUpCapture?: KeyboardEventHandler<T> | undefined;
1397
1405
 
1398
1406
  // Media Events
1399
- onAbort?: ReactEventHandler<T>;
1400
- onAbortCapture?: ReactEventHandler<T>;
1401
- onCanPlay?: ReactEventHandler<T>;
1402
- onCanPlayCapture?: ReactEventHandler<T>;
1403
- onCanPlayThrough?: ReactEventHandler<T>;
1404
- onCanPlayThroughCapture?: ReactEventHandler<T>;
1405
- onDurationChange?: ReactEventHandler<T>;
1406
- onDurationChangeCapture?: ReactEventHandler<T>;
1407
- onEmptied?: ReactEventHandler<T>;
1408
- onEmptiedCapture?: ReactEventHandler<T>;
1409
- onEncrypted?: ReactEventHandler<T>;
1410
- onEncryptedCapture?: ReactEventHandler<T>;
1411
- onEnded?: ReactEventHandler<T>;
1412
- onEndedCapture?: ReactEventHandler<T>;
1413
- onLoadedData?: ReactEventHandler<T>;
1414
- onLoadedDataCapture?: ReactEventHandler<T>;
1415
- onLoadedMetadata?: ReactEventHandler<T>;
1416
- onLoadedMetadataCapture?: ReactEventHandler<T>;
1417
- onLoadStart?: ReactEventHandler<T>;
1418
- onLoadStartCapture?: ReactEventHandler<T>;
1419
- onPause?: ReactEventHandler<T>;
1420
- onPauseCapture?: ReactEventHandler<T>;
1421
- onPlay?: ReactEventHandler<T>;
1422
- onPlayCapture?: ReactEventHandler<T>;
1423
- onPlaying?: ReactEventHandler<T>;
1424
- onPlayingCapture?: ReactEventHandler<T>;
1425
- onProgress?: ReactEventHandler<T>;
1426
- onProgressCapture?: ReactEventHandler<T>;
1427
- onRateChange?: ReactEventHandler<T>;
1428
- onRateChangeCapture?: ReactEventHandler<T>;
1429
- onSeeked?: ReactEventHandler<T>;
1430
- onSeekedCapture?: ReactEventHandler<T>;
1431
- onSeeking?: ReactEventHandler<T>;
1432
- onSeekingCapture?: ReactEventHandler<T>;
1433
- onStalled?: ReactEventHandler<T>;
1434
- onStalledCapture?: ReactEventHandler<T>;
1435
- onSuspend?: ReactEventHandler<T>;
1436
- onSuspendCapture?: ReactEventHandler<T>;
1437
- onTimeUpdate?: ReactEventHandler<T>;
1438
- onTimeUpdateCapture?: ReactEventHandler<T>;
1439
- onVolumeChange?: ReactEventHandler<T>;
1440
- onVolumeChangeCapture?: ReactEventHandler<T>;
1441
- onWaiting?: ReactEventHandler<T>;
1442
- onWaitingCapture?: ReactEventHandler<T>;
1407
+ onAbort?: ReactEventHandler<T> | undefined;
1408
+ onAbortCapture?: ReactEventHandler<T> | undefined;
1409
+ onCanPlay?: ReactEventHandler<T> | undefined;
1410
+ onCanPlayCapture?: ReactEventHandler<T> | undefined;
1411
+ onCanPlayThrough?: ReactEventHandler<T> | undefined;
1412
+ onCanPlayThroughCapture?: ReactEventHandler<T> | undefined;
1413
+ onDurationChange?: ReactEventHandler<T> | undefined;
1414
+ onDurationChangeCapture?: ReactEventHandler<T> | undefined;
1415
+ onEmptied?: ReactEventHandler<T> | undefined;
1416
+ onEmptiedCapture?: ReactEventHandler<T> | undefined;
1417
+ onEncrypted?: ReactEventHandler<T> | undefined;
1418
+ onEncryptedCapture?: ReactEventHandler<T> | undefined;
1419
+ onEnded?: ReactEventHandler<T> | undefined;
1420
+ onEndedCapture?: ReactEventHandler<T> | undefined;
1421
+ onLoadedData?: ReactEventHandler<T> | undefined;
1422
+ onLoadedDataCapture?: ReactEventHandler<T> | undefined;
1423
+ onLoadedMetadata?: ReactEventHandler<T> | undefined;
1424
+ onLoadedMetadataCapture?: ReactEventHandler<T> | undefined;
1425
+ onLoadStart?: ReactEventHandler<T> | undefined;
1426
+ onLoadStartCapture?: ReactEventHandler<T> | undefined;
1427
+ onPause?: ReactEventHandler<T> | undefined;
1428
+ onPauseCapture?: ReactEventHandler<T> | undefined;
1429
+ onPlay?: ReactEventHandler<T> | undefined;
1430
+ onPlayCapture?: ReactEventHandler<T> | undefined;
1431
+ onPlaying?: ReactEventHandler<T> | undefined;
1432
+ onPlayingCapture?: ReactEventHandler<T> | undefined;
1433
+ onProgress?: ReactEventHandler<T> | undefined;
1434
+ onProgressCapture?: ReactEventHandler<T> | undefined;
1435
+ onRateChange?: ReactEventHandler<T> | undefined;
1436
+ onRateChangeCapture?: ReactEventHandler<T> | undefined;
1437
+ onSeeked?: ReactEventHandler<T> | undefined;
1438
+ onSeekedCapture?: ReactEventHandler<T> | undefined;
1439
+ onSeeking?: ReactEventHandler<T> | undefined;
1440
+ onSeekingCapture?: ReactEventHandler<T> | undefined;
1441
+ onStalled?: ReactEventHandler<T> | undefined;
1442
+ onStalledCapture?: ReactEventHandler<T> | undefined;
1443
+ onSuspend?: ReactEventHandler<T> | undefined;
1444
+ onSuspendCapture?: ReactEventHandler<T> | undefined;
1445
+ onTimeUpdate?: ReactEventHandler<T> | undefined;
1446
+ onTimeUpdateCapture?: ReactEventHandler<T> | undefined;
1447
+ onVolumeChange?: ReactEventHandler<T> | undefined;
1448
+ onVolumeChangeCapture?: ReactEventHandler<T> | undefined;
1449
+ onWaiting?: ReactEventHandler<T> | undefined;
1450
+ onWaitingCapture?: ReactEventHandler<T> | undefined;
1443
1451
 
1444
1452
  // MouseEvents
1445
- onAuxClick?: MouseEventHandler<T>;
1446
- onAuxClickCapture?: MouseEventHandler<T>;
1447
- onClick?: MouseEventHandler<T>;
1448
- onClickCapture?: MouseEventHandler<T>;
1449
- onContextMenu?: MouseEventHandler<T>;
1450
- onContextMenuCapture?: MouseEventHandler<T>;
1451
- onDoubleClick?: MouseEventHandler<T>;
1452
- onDoubleClickCapture?: MouseEventHandler<T>;
1453
- onDrag?: DragEventHandler<T>;
1454
- onDragCapture?: DragEventHandler<T>;
1455
- onDragEnd?: DragEventHandler<T>;
1456
- onDragEndCapture?: DragEventHandler<T>;
1457
- onDragEnter?: DragEventHandler<T>;
1458
- onDragEnterCapture?: DragEventHandler<T>;
1459
- onDragExit?: DragEventHandler<T>;
1460
- onDragExitCapture?: DragEventHandler<T>;
1461
- onDragLeave?: DragEventHandler<T>;
1462
- onDragLeaveCapture?: DragEventHandler<T>;
1463
- onDragOver?: DragEventHandler<T>;
1464
- onDragOverCapture?: DragEventHandler<T>;
1465
- onDragStart?: DragEventHandler<T>;
1466
- onDragStartCapture?: DragEventHandler<T>;
1467
- onDrop?: DragEventHandler<T>;
1468
- onDropCapture?: DragEventHandler<T>;
1469
- onMouseDown?: MouseEventHandler<T>;
1470
- onMouseDownCapture?: MouseEventHandler<T>;
1471
- onMouseEnter?: MouseEventHandler<T>;
1472
- onMouseLeave?: MouseEventHandler<T>;
1473
- onMouseMove?: MouseEventHandler<T>;
1474
- onMouseMoveCapture?: MouseEventHandler<T>;
1475
- onMouseOut?: MouseEventHandler<T>;
1476
- onMouseOutCapture?: MouseEventHandler<T>;
1477
- onMouseOver?: MouseEventHandler<T>;
1478
- onMouseOverCapture?: MouseEventHandler<T>;
1479
- onMouseUp?: MouseEventHandler<T>;
1480
- onMouseUpCapture?: MouseEventHandler<T>;
1453
+ onAuxClick?: MouseEventHandler<T> | undefined;
1454
+ onAuxClickCapture?: MouseEventHandler<T> | undefined;
1455
+ onClick?: MouseEventHandler<T> | undefined;
1456
+ onClickCapture?: MouseEventHandler<T> | undefined;
1457
+ onContextMenu?: MouseEventHandler<T> | undefined;
1458
+ onContextMenuCapture?: MouseEventHandler<T> | undefined;
1459
+ onDoubleClick?: MouseEventHandler<T> | undefined;
1460
+ onDoubleClickCapture?: MouseEventHandler<T> | undefined;
1461
+ onDrag?: DragEventHandler<T> | undefined;
1462
+ onDragCapture?: DragEventHandler<T> | undefined;
1463
+ onDragEnd?: DragEventHandler<T> | undefined;
1464
+ onDragEndCapture?: DragEventHandler<T> | undefined;
1465
+ onDragEnter?: DragEventHandler<T> | undefined;
1466
+ onDragEnterCapture?: DragEventHandler<T> | undefined;
1467
+ onDragExit?: DragEventHandler<T> | undefined;
1468
+ onDragExitCapture?: DragEventHandler<T> | undefined;
1469
+ onDragLeave?: DragEventHandler<T> | undefined;
1470
+ onDragLeaveCapture?: DragEventHandler<T> | undefined;
1471
+ onDragOver?: DragEventHandler<T> | undefined;
1472
+ onDragOverCapture?: DragEventHandler<T> | undefined;
1473
+ onDragStart?: DragEventHandler<T> | undefined;
1474
+ onDragStartCapture?: DragEventHandler<T> | undefined;
1475
+ onDrop?: DragEventHandler<T> | undefined;
1476
+ onDropCapture?: DragEventHandler<T> | undefined;
1477
+ onMouseDown?: MouseEventHandler<T> | undefined;
1478
+ onMouseDownCapture?: MouseEventHandler<T> | undefined;
1479
+ onMouseEnter?: MouseEventHandler<T> | undefined;
1480
+ onMouseLeave?: MouseEventHandler<T> | undefined;
1481
+ onMouseMove?: MouseEventHandler<T> | undefined;
1482
+ onMouseMoveCapture?: MouseEventHandler<T> | undefined;
1483
+ onMouseOut?: MouseEventHandler<T> | undefined;
1484
+ onMouseOutCapture?: MouseEventHandler<T> | undefined;
1485
+ onMouseOver?: MouseEventHandler<T> | undefined;
1486
+ onMouseOverCapture?: MouseEventHandler<T> | undefined;
1487
+ onMouseUp?: MouseEventHandler<T> | undefined;
1488
+ onMouseUpCapture?: MouseEventHandler<T> | undefined;
1481
1489
 
1482
1490
  // Selection Events
1483
- onSelect?: ReactEventHandler<T>;
1484
- onSelectCapture?: ReactEventHandler<T>;
1491
+ onSelect?: ReactEventHandler<T> | undefined;
1492
+ onSelectCapture?: ReactEventHandler<T> | undefined;
1485
1493
 
1486
1494
  // Touch Events
1487
- onTouchCancel?: TouchEventHandler<T>;
1488
- onTouchCancelCapture?: TouchEventHandler<T>;
1489
- onTouchEnd?: TouchEventHandler<T>;
1490
- onTouchEndCapture?: TouchEventHandler<T>;
1491
- onTouchMove?: TouchEventHandler<T>;
1492
- onTouchMoveCapture?: TouchEventHandler<T>;
1493
- onTouchStart?: TouchEventHandler<T>;
1494
- onTouchStartCapture?: TouchEventHandler<T>;
1495
+ onTouchCancel?: TouchEventHandler<T> | undefined;
1496
+ onTouchCancelCapture?: TouchEventHandler<T> | undefined;
1497
+ onTouchEnd?: TouchEventHandler<T> | undefined;
1498
+ onTouchEndCapture?: TouchEventHandler<T> | undefined;
1499
+ onTouchMove?: TouchEventHandler<T> | undefined;
1500
+ onTouchMoveCapture?: TouchEventHandler<T> | undefined;
1501
+ onTouchStart?: TouchEventHandler<T> | undefined;
1502
+ onTouchStartCapture?: TouchEventHandler<T> | undefined;
1495
1503
 
1496
1504
  // Pointer Events
1497
- onPointerDown?: PointerEventHandler<T>;
1498
- onPointerDownCapture?: PointerEventHandler<T>;
1499
- onPointerMove?: PointerEventHandler<T>;
1500
- onPointerMoveCapture?: PointerEventHandler<T>;
1501
- onPointerUp?: PointerEventHandler<T>;
1502
- onPointerUpCapture?: PointerEventHandler<T>;
1503
- onPointerCancel?: PointerEventHandler<T>;
1504
- onPointerCancelCapture?: PointerEventHandler<T>;
1505
- onPointerEnter?: PointerEventHandler<T>;
1506
- onPointerEnterCapture?: PointerEventHandler<T>;
1507
- onPointerLeave?: PointerEventHandler<T>;
1508
- onPointerLeaveCapture?: PointerEventHandler<T>;
1509
- onPointerOver?: PointerEventHandler<T>;
1510
- onPointerOverCapture?: PointerEventHandler<T>;
1511
- onPointerOut?: PointerEventHandler<T>;
1512
- onPointerOutCapture?: PointerEventHandler<T>;
1513
- onGotPointerCapture?: PointerEventHandler<T>;
1514
- onGotPointerCaptureCapture?: PointerEventHandler<T>;
1515
- onLostPointerCapture?: PointerEventHandler<T>;
1516
- onLostPointerCaptureCapture?: PointerEventHandler<T>;
1505
+ onPointerDown?: PointerEventHandler<T> | undefined;
1506
+ onPointerDownCapture?: PointerEventHandler<T> | undefined;
1507
+ onPointerMove?: PointerEventHandler<T> | undefined;
1508
+ onPointerMoveCapture?: PointerEventHandler<T> | undefined;
1509
+ onPointerUp?: PointerEventHandler<T> | undefined;
1510
+ onPointerUpCapture?: PointerEventHandler<T> | undefined;
1511
+ onPointerCancel?: PointerEventHandler<T> | undefined;
1512
+ onPointerCancelCapture?: PointerEventHandler<T> | undefined;
1513
+ onPointerEnter?: PointerEventHandler<T> | undefined;
1514
+ onPointerEnterCapture?: PointerEventHandler<T> | undefined;
1515
+ onPointerLeave?: PointerEventHandler<T> | undefined;
1516
+ onPointerLeaveCapture?: PointerEventHandler<T> | undefined;
1517
+ onPointerOver?: PointerEventHandler<T> | undefined;
1518
+ onPointerOverCapture?: PointerEventHandler<T> | undefined;
1519
+ onPointerOut?: PointerEventHandler<T> | undefined;
1520
+ onPointerOutCapture?: PointerEventHandler<T> | undefined;
1521
+ onGotPointerCapture?: PointerEventHandler<T> | undefined;
1522
+ onGotPointerCaptureCapture?: PointerEventHandler<T> | undefined;
1523
+ onLostPointerCapture?: PointerEventHandler<T> | undefined;
1524
+ onLostPointerCaptureCapture?: PointerEventHandler<T> | undefined;
1517
1525
 
1518
1526
  // UI Events
1519
- onScroll?: UIEventHandler<T>;
1520
- onScrollCapture?: UIEventHandler<T>;
1527
+ onScroll?: UIEventHandler<T> | undefined;
1528
+ onScrollCapture?: UIEventHandler<T> | undefined;
1521
1529
 
1522
1530
  // Wheel Events
1523
- onWheel?: WheelEventHandler<T>;
1524
- onWheelCapture?: WheelEventHandler<T>;
1531
+ onWheel?: WheelEventHandler<T> | undefined;
1532
+ onWheelCapture?: WheelEventHandler<T> | undefined;
1525
1533
 
1526
1534
  // Animation Events
1527
- onAnimationStart?: AnimationEventHandler<T>;
1528
- onAnimationStartCapture?: AnimationEventHandler<T>;
1529
- onAnimationEnd?: AnimationEventHandler<T>;
1530
- onAnimationEndCapture?: AnimationEventHandler<T>;
1531
- onAnimationIteration?: AnimationEventHandler<T>;
1532
- onAnimationIterationCapture?: AnimationEventHandler<T>;
1535
+ onAnimationStart?: AnimationEventHandler<T> | undefined;
1536
+ onAnimationStartCapture?: AnimationEventHandler<T> | undefined;
1537
+ onAnimationEnd?: AnimationEventHandler<T> | undefined;
1538
+ onAnimationEndCapture?: AnimationEventHandler<T> | undefined;
1539
+ onAnimationIteration?: AnimationEventHandler<T> | undefined;
1540
+ onAnimationIterationCapture?: AnimationEventHandler<T> | undefined;
1533
1541
 
1534
1542
  // Transition Events
1535
- onTransitionEnd?: TransitionEventHandler<T>;
1536
- onTransitionEndCapture?: TransitionEventHandler<T>;
1543
+ onTransitionEnd?: TransitionEventHandler<T> | undefined;
1544
+ onTransitionEndCapture?: TransitionEventHandler<T> | undefined;
1537
1545
  }
1538
1546
 
1539
1547
  export interface CSSProperties extends CSS.Properties<string | number> {
@@ -1550,189 +1558,189 @@ declare namespace React {
1550
1558
  // All the WAI-ARIA 1.1 attributes from https://www.w3.org/TR/wai-aria-1.1/
1551
1559
  interface AriaAttributes {
1552
1560
  /** Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application. */
1553
- 'aria-activedescendant'?: string;
1561
+ 'aria-activedescendant'?: string | undefined;
1554
1562
  /** 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. */
1555
- 'aria-atomic'?: boolean | 'false' | 'true';
1563
+ 'aria-atomic'?: boolean | 'false' | 'true' | undefined;
1556
1564
  /**
1557
1565
  * 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
1558
1566
  * presented if they are made.
1559
1567
  */
1560
- 'aria-autocomplete'?: 'none' | 'inline' | 'list' | 'both';
1568
+ 'aria-autocomplete'?: 'none' | 'inline' | 'list' | 'both' | undefined;
1561
1569
  /** 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. */
1562
- 'aria-busy'?: boolean | 'false' | 'true';
1570
+ 'aria-busy'?: boolean | 'false' | 'true' | undefined;
1563
1571
  /**
1564
1572
  * Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.
1565
1573
  * @see aria-pressed @see aria-selected.
1566
1574
  */
1567
- 'aria-checked'?: boolean | 'false' | 'mixed' | 'true';
1575
+ 'aria-checked'?: boolean | 'false' | 'mixed' | 'true' | undefined;
1568
1576
  /**
1569
1577
  * Defines the total number of columns in a table, grid, or treegrid.
1570
1578
  * @see aria-colindex.
1571
1579
  */
1572
- 'aria-colcount'?: number;
1580
+ 'aria-colcount'?: number | undefined;
1573
1581
  /**
1574
1582
  * Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.
1575
1583
  * @see aria-colcount @see aria-colspan.
1576
1584
  */
1577
- 'aria-colindex'?: number;
1585
+ 'aria-colindex'?: number | undefined;
1578
1586
  /**
1579
1587
  * Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.
1580
1588
  * @see aria-colindex @see aria-rowspan.
1581
1589
  */
1582
- 'aria-colspan'?: number;
1590
+ 'aria-colspan'?: number | undefined;
1583
1591
  /**
1584
1592
  * Identifies the element (or elements) whose contents or presence are controlled by the current element.
1585
1593
  * @see aria-owns.
1586
1594
  */
1587
- 'aria-controls'?: string;
1595
+ 'aria-controls'?: string | undefined;
1588
1596
  /** Indicates the element that represents the current item within a container or set of related elements. */
1589
- 'aria-current'?: boolean | 'false' | 'true' | 'page' | 'step' | 'location' | 'date' | 'time';
1597
+ 'aria-current'?: boolean | 'false' | 'true' | 'page' | 'step' | 'location' | 'date' | 'time' | undefined;
1590
1598
  /**
1591
1599
  * Identifies the element (or elements) that describes the object.
1592
1600
  * @see aria-labelledby
1593
1601
  */
1594
- 'aria-describedby'?: string;
1602
+ 'aria-describedby'?: string | undefined;
1595
1603
  /**
1596
1604
  * Identifies the element that provides a detailed, extended description for the object.
1597
1605
  * @see aria-describedby.
1598
1606
  */
1599
- 'aria-details'?: string;
1607
+ 'aria-details'?: string | undefined;
1600
1608
  /**
1601
1609
  * Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.
1602
1610
  * @see aria-hidden @see aria-readonly.
1603
1611
  */
1604
- 'aria-disabled'?: boolean | 'false' | 'true';
1612
+ 'aria-disabled'?: boolean | 'false' | 'true' | undefined;
1605
1613
  /**
1606
1614
  * Indicates what functions can be performed when a dragged object is released on the drop target.
1607
1615
  * @deprecated in ARIA 1.1
1608
1616
  */
1609
- 'aria-dropeffect'?: 'none' | 'copy' | 'execute' | 'link' | 'move' | 'popup';
1617
+ 'aria-dropeffect'?: 'none' | 'copy' | 'execute' | 'link' | 'move' | 'popup' | undefined;
1610
1618
  /**
1611
1619
  * Identifies the element that provides an error message for the object.
1612
1620
  * @see aria-invalid @see aria-describedby.
1613
1621
  */
1614
- 'aria-errormessage'?: string;
1622
+ 'aria-errormessage'?: string | undefined;
1615
1623
  /** Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. */
1616
- 'aria-expanded'?: boolean | 'false' | 'true';
1624
+ 'aria-expanded'?: boolean | 'false' | 'true' | undefined;
1617
1625
  /**
1618
1626
  * Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,
1619
1627
  * allows assistive technology to override the general default of reading in document source order.
1620
1628
  */
1621
- 'aria-flowto'?: string;
1629
+ 'aria-flowto'?: string | undefined;
1622
1630
  /**
1623
1631
  * Indicates an element's "grabbed" state in a drag-and-drop operation.
1624
1632
  * @deprecated in ARIA 1.1
1625
1633
  */
1626
- 'aria-grabbed'?: boolean | 'false' | 'true';
1634
+ 'aria-grabbed'?: boolean | 'false' | 'true' | undefined;
1627
1635
  /** Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element. */
1628
- 'aria-haspopup'?: boolean | 'false' | 'true' | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog';
1636
+ 'aria-haspopup'?: boolean | 'false' | 'true' | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog' | undefined;
1629
1637
  /**
1630
1638
  * Indicates whether the element is exposed to an accessibility API.
1631
1639
  * @see aria-disabled.
1632
1640
  */
1633
- 'aria-hidden'?: boolean | 'false' | 'true';
1641
+ 'aria-hidden'?: boolean | 'false' | 'true' | undefined;
1634
1642
  /**
1635
1643
  * Indicates the entered value does not conform to the format expected by the application.
1636
1644
  * @see aria-errormessage.
1637
1645
  */
1638
- 'aria-invalid'?: boolean | 'false' | 'true' | 'grammar' | 'spelling';
1646
+ 'aria-invalid'?: boolean | 'false' | 'true' | 'grammar' | 'spelling' | undefined;
1639
1647
  /** Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element. */
1640
- 'aria-keyshortcuts'?: string;
1648
+ 'aria-keyshortcuts'?: string | undefined;
1641
1649
  /**
1642
1650
  * Defines a string value that labels the current element.
1643
1651
  * @see aria-labelledby.
1644
1652
  */
1645
- 'aria-label'?: string;
1653
+ 'aria-label'?: string | undefined;
1646
1654
  /**
1647
1655
  * Identifies the element (or elements) that labels the current element.
1648
1656
  * @see aria-describedby.
1649
1657
  */
1650
- 'aria-labelledby'?: string;
1658
+ 'aria-labelledby'?: string | undefined;
1651
1659
  /** Defines the hierarchical level of an element within a structure. */
1652
- 'aria-level'?: number;
1660
+ 'aria-level'?: number | undefined;
1653
1661
  /** 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. */
1654
- 'aria-live'?: 'off' | 'assertive' | 'polite';
1662
+ 'aria-live'?: 'off' | 'assertive' | 'polite' | undefined;
1655
1663
  /** Indicates whether an element is modal when displayed. */
1656
- 'aria-modal'?: boolean | 'false' | 'true';
1664
+ 'aria-modal'?: boolean | 'false' | 'true' | undefined;
1657
1665
  /** Indicates whether a text box accepts multiple lines of input or only a single line. */
1658
- 'aria-multiline'?: boolean | 'false' | 'true';
1666
+ 'aria-multiline'?: boolean | 'false' | 'true' | undefined;
1659
1667
  /** Indicates that the user may select more than one item from the current selectable descendants. */
1660
- 'aria-multiselectable'?: boolean | 'false' | 'true';
1668
+ 'aria-multiselectable'?: boolean | 'false' | 'true' | undefined;
1661
1669
  /** Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous. */
1662
- 'aria-orientation'?: 'horizontal' | 'vertical';
1670
+ 'aria-orientation'?: 'horizontal' | 'vertical' | undefined;
1663
1671
  /**
1664
1672
  * Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship
1665
1673
  * between DOM elements where the DOM hierarchy cannot be used to represent the relationship.
1666
1674
  * @see aria-controls.
1667
1675
  */
1668
- 'aria-owns'?: string;
1676
+ 'aria-owns'?: string | undefined;
1669
1677
  /**
1670
1678
  * Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.
1671
1679
  * A hint could be a sample value or a brief description of the expected format.
1672
1680
  */
1673
- 'aria-placeholder'?: string;
1681
+ 'aria-placeholder'?: string | undefined;
1674
1682
  /**
1675
1683
  * 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.
1676
1684
  * @see aria-setsize.
1677
1685
  */
1678
- 'aria-posinset'?: number;
1686
+ 'aria-posinset'?: number | undefined;
1679
1687
  /**
1680
1688
  * Indicates the current "pressed" state of toggle buttons.
1681
1689
  * @see aria-checked @see aria-selected.
1682
1690
  */
1683
- 'aria-pressed'?: boolean | 'false' | 'mixed' | 'true';
1691
+ 'aria-pressed'?: boolean | 'false' | 'mixed' | 'true' | undefined;
1684
1692
  /**
1685
1693
  * Indicates that the element is not editable, but is otherwise operable.
1686
1694
  * @see aria-disabled.
1687
1695
  */
1688
- 'aria-readonly'?: boolean | 'false' | 'true';
1696
+ 'aria-readonly'?: boolean | 'false' | 'true' | undefined;
1689
1697
  /**
1690
1698
  * Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.
1691
1699
  * @see aria-atomic.
1692
1700
  */
1693
- 'aria-relevant'?: 'additions' | 'additions removals' | 'additions text' | 'all' | 'removals' | 'removals additions' | 'removals text' | 'text' | 'text additions' | 'text removals';
1701
+ 'aria-relevant'?: 'additions' | 'additions removals' | 'additions text' | 'all' | 'removals' | 'removals additions' | 'removals text' | 'text' | 'text additions' | 'text removals' | undefined;
1694
1702
  /** Indicates that user input is required on the element before a form may be submitted. */
1695
- 'aria-required'?: boolean | 'false' | 'true';
1703
+ 'aria-required'?: boolean | 'false' | 'true' | undefined;
1696
1704
  /** Defines a human-readable, author-localized description for the role of an element. */
1697
- 'aria-roledescription'?: string;
1705
+ 'aria-roledescription'?: string | undefined;
1698
1706
  /**
1699
1707
  * Defines the total number of rows in a table, grid, or treegrid.
1700
1708
  * @see aria-rowindex.
1701
1709
  */
1702
- 'aria-rowcount'?: number;
1710
+ 'aria-rowcount'?: number | undefined;
1703
1711
  /**
1704
1712
  * Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.
1705
1713
  * @see aria-rowcount @see aria-rowspan.
1706
1714
  */
1707
- 'aria-rowindex'?: number;
1715
+ 'aria-rowindex'?: number | undefined;
1708
1716
  /**
1709
1717
  * Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.
1710
1718
  * @see aria-rowindex @see aria-colspan.
1711
1719
  */
1712
- 'aria-rowspan'?: number;
1720
+ 'aria-rowspan'?: number | undefined;
1713
1721
  /**
1714
1722
  * Indicates the current "selected" state of various widgets.
1715
1723
  * @see aria-checked @see aria-pressed.
1716
1724
  */
1717
- 'aria-selected'?: boolean | 'false' | 'true';
1725
+ 'aria-selected'?: boolean | 'false' | 'true' | undefined;
1718
1726
  /**
1719
1727
  * 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.
1720
1728
  * @see aria-posinset.
1721
1729
  */
1722
- 'aria-setsize'?: number;
1730
+ 'aria-setsize'?: number | undefined;
1723
1731
  /** Indicates if items in a table or grid are sorted in ascending or descending order. */
1724
- 'aria-sort'?: 'none' | 'ascending' | 'descending' | 'other';
1732
+ 'aria-sort'?: 'none' | 'ascending' | 'descending' | 'other' | undefined;
1725
1733
  /** Defines the maximum allowed value for a range widget. */
1726
- 'aria-valuemax'?: number;
1734
+ 'aria-valuemax'?: number | undefined;
1727
1735
  /** Defines the minimum allowed value for a range widget. */
1728
- 'aria-valuemin'?: number;
1736
+ 'aria-valuemin'?: number | undefined;
1729
1737
  /**
1730
1738
  * Defines the current value for a range widget.
1731
1739
  * @see aria-valuetext.
1732
1740
  */
1733
- 'aria-valuenow'?: number;
1741
+ 'aria-valuenow'?: number | undefined;
1734
1742
  /** Defines the human readable text alternative of aria-valuenow for a range widget. */
1735
- 'aria-valuetext'?: string;
1743
+ 'aria-valuetext'?: string | undefined;
1736
1744
  }
1737
1745
 
1738
1746
  // All the WAI-ARIA 1.1 role attribute values from https://www.w3.org/TR/wai-aria-1.1/#role_definitions
@@ -1810,180 +1818,180 @@ declare namespace React {
1810
1818
 
1811
1819
  interface HTMLAttributes<T> extends AriaAttributes, DOMAttributes<T> {
1812
1820
  // React-specific Attributes
1813
- defaultChecked?: boolean;
1814
- defaultValue?: string | number | ReadonlyArray<string>;
1815
- suppressContentEditableWarning?: boolean;
1816
- suppressHydrationWarning?: boolean;
1821
+ defaultChecked?: boolean | undefined;
1822
+ defaultValue?: string | number | ReadonlyArray<string> | undefined;
1823
+ suppressContentEditableWarning?: boolean | undefined;
1824
+ suppressHydrationWarning?: boolean | undefined;
1817
1825
 
1818
1826
  // Standard HTML Attributes
1819
- accessKey?: string;
1820
- className?: string;
1821
- contentEditable?: Booleanish | "inherit";
1822
- contextMenu?: string;
1823
- dir?: string;
1824
- draggable?: Booleanish;
1825
- hidden?: boolean;
1826
- id?: string;
1827
- lang?: string;
1828
- placeholder?: string;
1829
- slot?: string;
1830
- spellCheck?: Booleanish;
1831
- style?: CSSProperties;
1832
- tabIndex?: number;
1833
- title?: string;
1834
- translate?: 'yes' | 'no';
1827
+ accessKey?: string | undefined;
1828
+ className?: string | undefined;
1829
+ contentEditable?: Booleanish | "inherit" | undefined;
1830
+ contextMenu?: string | undefined;
1831
+ dir?: string | undefined;
1832
+ draggable?: Booleanish | undefined;
1833
+ hidden?: boolean | undefined;
1834
+ id?: string | undefined;
1835
+ lang?: string | undefined;
1836
+ placeholder?: string | undefined;
1837
+ slot?: string | undefined;
1838
+ spellCheck?: Booleanish | undefined;
1839
+ style?: CSSProperties | undefined;
1840
+ tabIndex?: number | undefined;
1841
+ title?: string | undefined;
1842
+ translate?: 'yes' | 'no' | undefined;
1835
1843
 
1836
1844
  // Unknown
1837
- radioGroup?: string; // <command>, <menuitem>
1845
+ radioGroup?: string | undefined; // <command>, <menuitem>
1838
1846
 
1839
1847
  // WAI-ARIA
1840
- role?: AriaRole;
1848
+ role?: AriaRole | undefined;
1841
1849
 
1842
1850
  // RDFa Attributes
1843
- about?: string;
1844
- datatype?: string;
1851
+ about?: string | undefined;
1852
+ datatype?: string | undefined;
1845
1853
  inlist?: any;
1846
- prefix?: string;
1847
- property?: string;
1848
- resource?: string;
1849
- typeof?: string;
1850
- vocab?: string;
1854
+ prefix?: string | undefined;
1855
+ property?: string | undefined;
1856
+ resource?: string | undefined;
1857
+ typeof?: string | undefined;
1858
+ vocab?: string | undefined;
1851
1859
 
1852
1860
  // Non-standard Attributes
1853
- autoCapitalize?: string;
1854
- autoCorrect?: string;
1855
- autoSave?: string;
1856
- color?: string;
1857
- itemProp?: string;
1858
- itemScope?: boolean;
1859
- itemType?: string;
1860
- itemID?: string;
1861
- itemRef?: string;
1862
- results?: number;
1863
- security?: string;
1864
- unselectable?: 'on' | 'off';
1861
+ autoCapitalize?: string | undefined;
1862
+ autoCorrect?: string | undefined;
1863
+ autoSave?: string | undefined;
1864
+ color?: string | undefined;
1865
+ itemProp?: string | undefined;
1866
+ itemScope?: boolean | undefined;
1867
+ itemType?: string | undefined;
1868
+ itemID?: string | undefined;
1869
+ itemRef?: string | undefined;
1870
+ results?: number | undefined;
1871
+ security?: string | undefined;
1872
+ unselectable?: 'on' | 'off' | undefined;
1865
1873
 
1866
1874
  // Living Standard
1867
1875
  /**
1868
1876
  * Hints at the type of data that might be entered by the user while editing the element or its contents
1869
1877
  * @see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute
1870
1878
  */
1871
- inputMode?: 'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search';
1879
+ inputMode?: 'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search' | undefined;
1872
1880
  /**
1873
1881
  * Specify that a standard HTML element should behave like a defined custom built-in element
1874
1882
  * @see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is
1875
1883
  */
1876
- is?: string;
1884
+ is?: string | undefined;
1877
1885
  }
1878
1886
 
1879
1887
  interface AllHTMLAttributes<T> extends HTMLAttributes<T> {
1880
1888
  // Standard HTML Attributes
1881
- accept?: string;
1882
- acceptCharset?: string;
1883
- action?: string;
1884
- allowFullScreen?: boolean;
1885
- allowTransparency?: boolean;
1886
- alt?: string;
1887
- as?: string;
1888
- async?: boolean;
1889
- autoComplete?: string;
1890
- autoFocus?: boolean;
1891
- autoPlay?: boolean;
1892
- capture?: boolean | string;
1893
- cellPadding?: number | string;
1894
- cellSpacing?: number | string;
1895
- charSet?: string;
1896
- challenge?: string;
1897
- checked?: boolean;
1898
- cite?: string;
1899
- classID?: string;
1900
- cols?: number;
1901
- colSpan?: number;
1902
- content?: string;
1903
- controls?: boolean;
1904
- coords?: string;
1905
- crossOrigin?: string;
1906
- data?: string;
1907
- dateTime?: string;
1908
- default?: boolean;
1909
- defer?: boolean;
1910
- disabled?: boolean;
1889
+ accept?: string | undefined;
1890
+ acceptCharset?: string | undefined;
1891
+ action?: string | undefined;
1892
+ allowFullScreen?: boolean | undefined;
1893
+ allowTransparency?: boolean | undefined;
1894
+ alt?: string | undefined;
1895
+ as?: string | undefined;
1896
+ async?: boolean | undefined;
1897
+ autoComplete?: string | undefined;
1898
+ autoFocus?: boolean | undefined;
1899
+ autoPlay?: boolean | undefined;
1900
+ capture?: boolean | string | undefined;
1901
+ cellPadding?: number | string | undefined;
1902
+ cellSpacing?: number | string | undefined;
1903
+ charSet?: string | undefined;
1904
+ challenge?: string | undefined;
1905
+ checked?: boolean | undefined;
1906
+ cite?: string | undefined;
1907
+ classID?: string | undefined;
1908
+ cols?: number | undefined;
1909
+ colSpan?: number | undefined;
1910
+ content?: string | undefined;
1911
+ controls?: boolean | undefined;
1912
+ coords?: string | undefined;
1913
+ crossOrigin?: string | undefined;
1914
+ data?: string | undefined;
1915
+ dateTime?: string | undefined;
1916
+ default?: boolean | undefined;
1917
+ defer?: boolean | undefined;
1918
+ disabled?: boolean | undefined;
1911
1919
  download?: any;
1912
- encType?: string;
1913
- form?: string;
1914
- formAction?: string;
1915
- formEncType?: string;
1916
- formMethod?: string;
1917
- formNoValidate?: boolean;
1918
- formTarget?: string;
1919
- frameBorder?: number | string;
1920
- headers?: string;
1921
- height?: number | string;
1922
- high?: number;
1923
- href?: string;
1924
- hrefLang?: string;
1925
- htmlFor?: string;
1926
- httpEquiv?: string;
1927
- integrity?: string;
1928
- keyParams?: string;
1929
- keyType?: string;
1930
- kind?: string;
1931
- label?: string;
1932
- list?: string;
1933
- loop?: boolean;
1934
- low?: number;
1935
- manifest?: string;
1936
- marginHeight?: number;
1937
- marginWidth?: number;
1938
- max?: number | string;
1939
- maxLength?: number;
1940
- media?: string;
1941
- mediaGroup?: string;
1942
- method?: string;
1943
- min?: number | string;
1944
- minLength?: number;
1945
- multiple?: boolean;
1946
- muted?: boolean;
1947
- name?: string;
1948
- nonce?: string;
1949
- noValidate?: boolean;
1950
- open?: boolean;
1951
- optimum?: number;
1952
- pattern?: string;
1953
- placeholder?: string;
1954
- playsInline?: boolean;
1955
- poster?: string;
1956
- preload?: string;
1957
- readOnly?: boolean;
1958
- rel?: string;
1959
- required?: boolean;
1960
- reversed?: boolean;
1961
- rows?: number;
1962
- rowSpan?: number;
1963
- sandbox?: string;
1964
- scope?: string;
1965
- scoped?: boolean;
1966
- scrolling?: string;
1967
- seamless?: boolean;
1968
- selected?: boolean;
1969
- shape?: string;
1970
- size?: number;
1971
- sizes?: string;
1972
- span?: number;
1973
- src?: string;
1974
- srcDoc?: string;
1975
- srcLang?: string;
1976
- srcSet?: string;
1977
- start?: number;
1978
- step?: number | string;
1979
- summary?: string;
1980
- target?: string;
1981
- type?: string;
1982
- useMap?: string;
1983
- value?: string | ReadonlyArray<string> | number;
1984
- width?: number | string;
1985
- wmode?: string;
1986
- wrap?: string;
1920
+ encType?: string | undefined;
1921
+ form?: string | undefined;
1922
+ formAction?: string | undefined;
1923
+ formEncType?: string | undefined;
1924
+ formMethod?: string | undefined;
1925
+ formNoValidate?: boolean | undefined;
1926
+ formTarget?: string | undefined;
1927
+ frameBorder?: number | string | undefined;
1928
+ headers?: string | undefined;
1929
+ height?: number | string | undefined;
1930
+ high?: number | undefined;
1931
+ href?: string | undefined;
1932
+ hrefLang?: string | undefined;
1933
+ htmlFor?: string | undefined;
1934
+ httpEquiv?: string | undefined;
1935
+ integrity?: string | undefined;
1936
+ keyParams?: string | undefined;
1937
+ keyType?: string | undefined;
1938
+ kind?: string | undefined;
1939
+ label?: string | undefined;
1940
+ list?: string | undefined;
1941
+ loop?: boolean | undefined;
1942
+ low?: number | undefined;
1943
+ manifest?: string | undefined;
1944
+ marginHeight?: number | undefined;
1945
+ marginWidth?: number | undefined;
1946
+ max?: number | string | undefined;
1947
+ maxLength?: number | undefined;
1948
+ media?: string | undefined;
1949
+ mediaGroup?: string | undefined;
1950
+ method?: string | undefined;
1951
+ min?: number | string | undefined;
1952
+ minLength?: number | undefined;
1953
+ multiple?: boolean | undefined;
1954
+ muted?: boolean | undefined;
1955
+ name?: string | undefined;
1956
+ nonce?: string | undefined;
1957
+ noValidate?: boolean | undefined;
1958
+ open?: boolean | undefined;
1959
+ optimum?: number | undefined;
1960
+ pattern?: string | undefined;
1961
+ placeholder?: string | undefined;
1962
+ playsInline?: boolean | undefined;
1963
+ poster?: string | undefined;
1964
+ preload?: string | undefined;
1965
+ readOnly?: boolean | undefined;
1966
+ rel?: string | undefined;
1967
+ required?: boolean | undefined;
1968
+ reversed?: boolean | undefined;
1969
+ rows?: number | undefined;
1970
+ rowSpan?: number | undefined;
1971
+ sandbox?: string | undefined;
1972
+ scope?: string | undefined;
1973
+ scoped?: boolean | undefined;
1974
+ scrolling?: string | undefined;
1975
+ seamless?: boolean | undefined;
1976
+ selected?: boolean | undefined;
1977
+ shape?: string | undefined;
1978
+ size?: number | undefined;
1979
+ sizes?: string | undefined;
1980
+ span?: number | undefined;
1981
+ src?: string | undefined;
1982
+ srcDoc?: string | undefined;
1983
+ srcLang?: string | undefined;
1984
+ srcSet?: string | undefined;
1985
+ start?: number | undefined;
1986
+ step?: number | string | undefined;
1987
+ summary?: string | undefined;
1988
+ target?: string | undefined;
1989
+ type?: string | undefined;
1990
+ useMap?: string | undefined;
1991
+ value?: string | ReadonlyArray<string> | number | undefined;
1992
+ width?: number | string | undefined;
1993
+ wmode?: string | undefined;
1994
+ wrap?: string | undefined;
1987
1995
  }
1988
1996
 
1989
1997
  type HTMLAttributeReferrerPolicy =
@@ -2006,427 +2014,430 @@ declare namespace React {
2006
2014
 
2007
2015
  interface AnchorHTMLAttributes<T> extends HTMLAttributes<T> {
2008
2016
  download?: any;
2009
- href?: string;
2010
- hrefLang?: string;
2011
- media?: string;
2012
- ping?: string;
2013
- rel?: string;
2014
- target?: HTMLAttributeAnchorTarget;
2015
- type?: string;
2016
- referrerPolicy?: HTMLAttributeReferrerPolicy;
2017
+ href?: string | undefined;
2018
+ hrefLang?: string | undefined;
2019
+ media?: string | undefined;
2020
+ ping?: string | undefined;
2021
+ rel?: string | undefined;
2022
+ target?: HTMLAttributeAnchorTarget | undefined;
2023
+ type?: string | undefined;
2024
+ referrerPolicy?: HTMLAttributeReferrerPolicy | undefined;
2017
2025
  }
2018
2026
 
2019
2027
  // tslint:disable-next-line:no-empty-interface
2020
2028
  interface AudioHTMLAttributes<T> extends MediaHTMLAttributes<T> {}
2021
2029
 
2022
2030
  interface AreaHTMLAttributes<T> extends HTMLAttributes<T> {
2023
- alt?: string;
2024
- coords?: string;
2031
+ alt?: string | undefined;
2032
+ coords?: string | undefined;
2025
2033
  download?: any;
2026
- href?: string;
2027
- hrefLang?: string;
2028
- media?: string;
2029
- referrerPolicy?: HTMLAttributeReferrerPolicy;
2030
- rel?: string;
2031
- shape?: string;
2032
- target?: string;
2034
+ href?: string | undefined;
2035
+ hrefLang?: string | undefined;
2036
+ media?: string | undefined;
2037
+ referrerPolicy?: HTMLAttributeReferrerPolicy | undefined;
2038
+ rel?: string | undefined;
2039
+ shape?: string | undefined;
2040
+ target?: string | undefined;
2033
2041
  }
2034
2042
 
2035
2043
  interface BaseHTMLAttributes<T> extends HTMLAttributes<T> {
2036
- href?: string;
2037
- target?: string;
2044
+ href?: string | undefined;
2045
+ target?: string | undefined;
2038
2046
  }
2039
2047
 
2040
2048
  interface BlockquoteHTMLAttributes<T> extends HTMLAttributes<T> {
2041
- cite?: string;
2049
+ cite?: string | undefined;
2042
2050
  }
2043
2051
 
2044
2052
  interface ButtonHTMLAttributes<T> extends HTMLAttributes<T> {
2045
- autoFocus?: boolean;
2046
- disabled?: boolean;
2047
- form?: string;
2048
- formAction?: string;
2049
- formEncType?: string;
2050
- formMethod?: string;
2051
- formNoValidate?: boolean;
2052
- formTarget?: string;
2053
- name?: string;
2054
- type?: 'submit' | 'reset' | 'button';
2055
- value?: string | ReadonlyArray<string> | number;
2053
+ autoFocus?: boolean | undefined;
2054
+ disabled?: boolean | undefined;
2055
+ form?: string | undefined;
2056
+ formAction?: string | undefined;
2057
+ formEncType?: string | undefined;
2058
+ formMethod?: string | undefined;
2059
+ formNoValidate?: boolean | undefined;
2060
+ formTarget?: string | undefined;
2061
+ name?: string | undefined;
2062
+ type?: 'submit' | 'reset' | 'button' | undefined;
2063
+ value?: string | ReadonlyArray<string> | number | undefined;
2056
2064
  }
2057
2065
 
2058
2066
  interface CanvasHTMLAttributes<T> extends HTMLAttributes<T> {
2059
- height?: number | string;
2060
- width?: number | string;
2067
+ height?: number | string | undefined;
2068
+ width?: number | string | undefined;
2061
2069
  }
2062
2070
 
2063
2071
  interface ColHTMLAttributes<T> extends HTMLAttributes<T> {
2064
- span?: number;
2065
- width?: number | string;
2072
+ span?: number | undefined;
2073
+ width?: number | string | undefined;
2066
2074
  }
2067
2075
 
2068
2076
  interface ColgroupHTMLAttributes<T> extends HTMLAttributes<T> {
2069
- span?: number;
2077
+ span?: number | undefined;
2070
2078
  }
2071
2079
 
2072
2080
  interface DataHTMLAttributes<T> extends HTMLAttributes<T> {
2073
- value?: string | ReadonlyArray<string> | number;
2081
+ value?: string | ReadonlyArray<string> | number | undefined;
2074
2082
  }
2075
2083
 
2076
2084
  interface DetailsHTMLAttributes<T> extends HTMLAttributes<T> {
2077
- open?: boolean;
2078
- onToggle?: ReactEventHandler<T>;
2085
+ open?: boolean | undefined;
2086
+ onToggle?: ReactEventHandler<T> | undefined;
2079
2087
  }
2080
2088
 
2081
2089
  interface DelHTMLAttributes<T> extends HTMLAttributes<T> {
2082
- cite?: string;
2083
- dateTime?: string;
2090
+ cite?: string | undefined;
2091
+ dateTime?: string | undefined;
2084
2092
  }
2085
2093
 
2086
2094
  interface DialogHTMLAttributes<T> extends HTMLAttributes<T> {
2087
- open?: boolean;
2095
+ open?: boolean | undefined;
2088
2096
  }
2089
2097
 
2090
2098
  interface EmbedHTMLAttributes<T> extends HTMLAttributes<T> {
2091
- height?: number | string;
2092
- src?: string;
2093
- type?: string;
2094
- width?: number | string;
2099
+ height?: number | string | undefined;
2100
+ src?: string | undefined;
2101
+ type?: string | undefined;
2102
+ width?: number | string | undefined;
2095
2103
  }
2096
2104
 
2097
2105
  interface FieldsetHTMLAttributes<T> extends HTMLAttributes<T> {
2098
- disabled?: boolean;
2099
- form?: string;
2100
- name?: string;
2106
+ disabled?: boolean | undefined;
2107
+ form?: string | undefined;
2108
+ name?: string | undefined;
2101
2109
  }
2102
2110
 
2103
2111
  interface FormHTMLAttributes<T> extends HTMLAttributes<T> {
2104
- acceptCharset?: string;
2105
- action?: string;
2106
- autoComplete?: string;
2107
- encType?: string;
2108
- method?: string;
2109
- name?: string;
2110
- noValidate?: boolean;
2111
- target?: string;
2112
+ acceptCharset?: string | undefined;
2113
+ action?: string | undefined;
2114
+ autoComplete?: string | undefined;
2115
+ encType?: string | undefined;
2116
+ method?: string | undefined;
2117
+ name?: string | undefined;
2118
+ noValidate?: boolean | undefined;
2119
+ target?: string | undefined;
2112
2120
  }
2113
2121
 
2114
2122
  interface HtmlHTMLAttributes<T> extends HTMLAttributes<T> {
2115
- manifest?: string;
2123
+ manifest?: string | undefined;
2116
2124
  }
2117
2125
 
2118
2126
  interface IframeHTMLAttributes<T> extends HTMLAttributes<T> {
2119
- allow?: string;
2120
- allowFullScreen?: boolean;
2121
- allowTransparency?: boolean;
2127
+ allow?: string | undefined;
2128
+ allowFullScreen?: boolean | undefined;
2129
+ allowTransparency?: boolean | undefined;
2122
2130
  /** @deprecated */
2123
- frameBorder?: number | string;
2124
- height?: number | string;
2125
- loading?: "eager" | "lazy";
2131
+ frameBorder?: number | string | undefined;
2132
+ height?: number | string | undefined;
2133
+ loading?: "eager" | "lazy" | undefined;
2126
2134
  /** @deprecated */
2127
- marginHeight?: number;
2135
+ marginHeight?: number | undefined;
2128
2136
  /** @deprecated */
2129
- marginWidth?: number;
2130
- name?: string;
2131
- referrerPolicy?: HTMLAttributeReferrerPolicy;
2132
- sandbox?: string;
2137
+ marginWidth?: number | undefined;
2138
+ name?: string | undefined;
2139
+ referrerPolicy?: HTMLAttributeReferrerPolicy | undefined;
2140
+ sandbox?: string | undefined;
2133
2141
  /** @deprecated */
2134
- scrolling?: string;
2135
- seamless?: boolean;
2136
- src?: string;
2137
- srcDoc?: string;
2138
- width?: number | string;
2142
+ scrolling?: string | undefined;
2143
+ seamless?: boolean | undefined;
2144
+ src?: string | undefined;
2145
+ srcDoc?: string | undefined;
2146
+ width?: number | string | undefined;
2139
2147
  }
2140
2148
 
2141
2149
  interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
2142
- alt?: string;
2143
- crossOrigin?: "anonymous" | "use-credentials" | "";
2144
- decoding?: "async" | "auto" | "sync";
2145
- height?: number | string;
2146
- loading?: "eager" | "lazy";
2147
- referrerPolicy?: HTMLAttributeReferrerPolicy;
2148
- sizes?: string;
2149
- src?: string;
2150
- srcSet?: string;
2151
- useMap?: string;
2152
- width?: number | string;
2150
+ alt?: string | undefined;
2151
+ crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
2152
+ decoding?: "async" | "auto" | "sync" | undefined;
2153
+ height?: number | string | undefined;
2154
+ loading?: "eager" | "lazy" | undefined;
2155
+ referrerPolicy?: HTMLAttributeReferrerPolicy | undefined;
2156
+ sizes?: string | undefined;
2157
+ src?: string | undefined;
2158
+ srcSet?: string | undefined;
2159
+ useMap?: string | undefined;
2160
+ width?: number | string | undefined;
2153
2161
  }
2154
2162
 
2155
2163
  interface InsHTMLAttributes<T> extends HTMLAttributes<T> {
2156
- cite?: string;
2157
- dateTime?: string;
2164
+ cite?: string | undefined;
2165
+ dateTime?: string | undefined;
2158
2166
  }
2159
2167
 
2160
2168
  interface InputHTMLAttributes<T> extends HTMLAttributes<T> {
2161
- accept?: string;
2162
- alt?: string;
2163
- autoComplete?: string;
2164
- autoFocus?: boolean;
2165
- capture?: boolean | string; // https://www.w3.org/TR/html-media-capture/#the-capture-attribute
2166
- checked?: boolean;
2167
- crossOrigin?: string;
2168
- disabled?: boolean;
2169
- form?: string;
2170
- formAction?: string;
2171
- formEncType?: string;
2172
- formMethod?: string;
2173
- formNoValidate?: boolean;
2174
- formTarget?: string;
2175
- height?: number | string;
2176
- list?: string;
2177
- max?: number | string;
2178
- maxLength?: number;
2179
- min?: number | string;
2180
- minLength?: number;
2181
- multiple?: boolean;
2182
- name?: string;
2183
- pattern?: string;
2184
- placeholder?: string;
2185
- readOnly?: boolean;
2186
- required?: boolean;
2187
- size?: number;
2188
- src?: string;
2189
- step?: number | string;
2190
- type?: string;
2191
- value?: string | ReadonlyArray<string> | number;
2192
- width?: number | string;
2193
-
2194
- onChange?: ChangeEventHandler<T>;
2169
+ accept?: string | undefined;
2170
+ alt?: string | undefined;
2171
+ autoComplete?: string | undefined;
2172
+ autoFocus?: boolean | undefined;
2173
+ capture?: boolean | string | undefined; // https://www.w3.org/TR/html-media-capture/#the-capture-attribute
2174
+ checked?: boolean | undefined;
2175
+ crossOrigin?: string | undefined;
2176
+ disabled?: boolean | undefined;
2177
+ form?: string | undefined;
2178
+ formAction?: string | undefined;
2179
+ formEncType?: string | undefined;
2180
+ formMethod?: string | undefined;
2181
+ formNoValidate?: boolean | undefined;
2182
+ formTarget?: string | undefined;
2183
+ height?: number | string | undefined;
2184
+ list?: string | undefined;
2185
+ max?: number | string | undefined;
2186
+ maxLength?: number | undefined;
2187
+ min?: number | string | undefined;
2188
+ minLength?: number | undefined;
2189
+ multiple?: boolean | undefined;
2190
+ name?: string | undefined;
2191
+ pattern?: string | undefined;
2192
+ placeholder?: string | undefined;
2193
+ readOnly?: boolean | undefined;
2194
+ required?: boolean | undefined;
2195
+ size?: number | undefined;
2196
+ src?: string | undefined;
2197
+ step?: number | string | undefined;
2198
+ type?: string | undefined;
2199
+ value?: string | ReadonlyArray<string> | number | undefined;
2200
+ width?: number | string | undefined;
2201
+
2202
+ onChange?: ChangeEventHandler<T> | undefined;
2195
2203
  }
2196
2204
 
2197
2205
  interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
2198
- autoFocus?: boolean;
2199
- challenge?: string;
2200
- disabled?: boolean;
2201
- form?: string;
2202
- keyType?: string;
2203
- keyParams?: string;
2204
- name?: string;
2206
+ autoFocus?: boolean | undefined;
2207
+ challenge?: string | undefined;
2208
+ disabled?: boolean | undefined;
2209
+ form?: string | undefined;
2210
+ keyType?: string | undefined;
2211
+ keyParams?: string | undefined;
2212
+ name?: string | undefined;
2205
2213
  }
2206
2214
 
2207
2215
  interface LabelHTMLAttributes<T> extends HTMLAttributes<T> {
2208
- form?: string;
2209
- htmlFor?: string;
2216
+ form?: string | undefined;
2217
+ htmlFor?: string | undefined;
2210
2218
  }
2211
2219
 
2212
2220
  interface LiHTMLAttributes<T> extends HTMLAttributes<T> {
2213
- value?: string | ReadonlyArray<string> | number;
2221
+ value?: string | ReadonlyArray<string> | number | undefined;
2214
2222
  }
2215
2223
 
2216
2224
  interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
2217
- as?: string;
2218
- crossOrigin?: string;
2219
- href?: string;
2220
- hrefLang?: string;
2221
- integrity?: string;
2222
- media?: string;
2223
- referrerPolicy?: HTMLAttributeReferrerPolicy;
2224
- rel?: string;
2225
- sizes?: string;
2226
- type?: string;
2227
- charSet?: string;
2225
+ as?: string | undefined;
2226
+ crossOrigin?: string | undefined;
2227
+ href?: string | undefined;
2228
+ hrefLang?: string | undefined;
2229
+ integrity?: string | undefined;
2230
+ media?: string | undefined;
2231
+ referrerPolicy?: HTMLAttributeReferrerPolicy | undefined;
2232
+ rel?: string | undefined;
2233
+ sizes?: string | undefined;
2234
+ type?: string | undefined;
2235
+ charSet?: string | undefined;
2228
2236
  }
2229
2237
 
2230
2238
  interface MapHTMLAttributes<T> extends HTMLAttributes<T> {
2231
- name?: string;
2239
+ name?: string | undefined;
2232
2240
  }
2233
2241
 
2234
2242
  interface MenuHTMLAttributes<T> extends HTMLAttributes<T> {
2235
- type?: string;
2243
+ type?: string | undefined;
2236
2244
  }
2237
2245
 
2238
2246
  interface MediaHTMLAttributes<T> extends HTMLAttributes<T> {
2239
- autoPlay?: boolean;
2240
- controls?: boolean;
2241
- controlsList?: string;
2242
- crossOrigin?: string;
2243
- loop?: boolean;
2244
- mediaGroup?: string;
2245
- muted?: boolean;
2246
- playsInline?: boolean;
2247
- preload?: string;
2248
- src?: string;
2247
+ autoPlay?: boolean | undefined;
2248
+ controls?: boolean | undefined;
2249
+ controlsList?: string | undefined;
2250
+ crossOrigin?: string | undefined;
2251
+ loop?: boolean | undefined;
2252
+ mediaGroup?: string | undefined;
2253
+ muted?: boolean | undefined;
2254
+ playsInline?: boolean | undefined;
2255
+ preload?: string | undefined;
2256
+ src?: string | undefined;
2249
2257
  }
2250
2258
 
2251
2259
  interface MetaHTMLAttributes<T> extends HTMLAttributes<T> {
2252
- charSet?: string;
2253
- content?: string;
2254
- httpEquiv?: string;
2255
- name?: string;
2260
+ charSet?: string | undefined;
2261
+ content?: string | undefined;
2262
+ httpEquiv?: string | undefined;
2263
+ name?: string | undefined;
2264
+ media?: string | undefined;
2256
2265
  }
2257
2266
 
2258
2267
  interface MeterHTMLAttributes<T> extends HTMLAttributes<T> {
2259
- form?: string;
2260
- high?: number;
2261
- low?: number;
2262
- max?: number | string;
2263
- min?: number | string;
2264
- optimum?: number;
2265
- value?: string | ReadonlyArray<string> | number;
2268
+ form?: string | undefined;
2269
+ high?: number | undefined;
2270
+ low?: number | undefined;
2271
+ max?: number | string | undefined;
2272
+ min?: number | string | undefined;
2273
+ optimum?: number | undefined;
2274
+ value?: string | ReadonlyArray<string> | number | undefined;
2266
2275
  }
2267
2276
 
2268
2277
  interface QuoteHTMLAttributes<T> extends HTMLAttributes<T> {
2269
- cite?: string;
2278
+ cite?: string | undefined;
2270
2279
  }
2271
2280
 
2272
2281
  interface ObjectHTMLAttributes<T> extends HTMLAttributes<T> {
2273
- classID?: string;
2274
- data?: string;
2275
- form?: string;
2276
- height?: number | string;
2277
- name?: string;
2278
- type?: string;
2279
- useMap?: string;
2280
- width?: number | string;
2281
- wmode?: string;
2282
+ classID?: string | undefined;
2283
+ data?: string | undefined;
2284
+ form?: string | undefined;
2285
+ height?: number | string | undefined;
2286
+ name?: string | undefined;
2287
+ type?: string | undefined;
2288
+ useMap?: string | undefined;
2289
+ width?: number | string | undefined;
2290
+ wmode?: string | undefined;
2282
2291
  }
2283
2292
 
2284
2293
  interface OlHTMLAttributes<T> extends HTMLAttributes<T> {
2285
- reversed?: boolean;
2286
- start?: number;
2287
- type?: '1' | 'a' | 'A' | 'i' | 'I';
2294
+ reversed?: boolean | undefined;
2295
+ start?: number | undefined;
2296
+ type?: '1' | 'a' | 'A' | 'i' | 'I' | undefined;
2288
2297
  }
2289
2298
 
2290
2299
  interface OptgroupHTMLAttributes<T> extends HTMLAttributes<T> {
2291
- disabled?: boolean;
2292
- label?: string;
2300
+ disabled?: boolean | undefined;
2301
+ label?: string | undefined;
2293
2302
  }
2294
2303
 
2295
2304
  interface OptionHTMLAttributes<T> extends HTMLAttributes<T> {
2296
- disabled?: boolean;
2297
- label?: string;
2298
- selected?: boolean;
2299
- value?: string | ReadonlyArray<string> | number;
2305
+ disabled?: boolean | undefined;
2306
+ label?: string | undefined;
2307
+ selected?: boolean | undefined;
2308
+ value?: string | ReadonlyArray<string> | number | undefined;
2300
2309
  }
2301
2310
 
2302
2311
  interface OutputHTMLAttributes<T> extends HTMLAttributes<T> {
2303
- form?: string;
2304
- htmlFor?: string;
2305
- name?: string;
2312
+ form?: string | undefined;
2313
+ htmlFor?: string | undefined;
2314
+ name?: string | undefined;
2306
2315
  }
2307
2316
 
2308
2317
  interface ParamHTMLAttributes<T> extends HTMLAttributes<T> {
2309
- name?: string;
2310
- value?: string | ReadonlyArray<string> | number;
2318
+ name?: string | undefined;
2319
+ value?: string | ReadonlyArray<string> | number | undefined;
2311
2320
  }
2312
2321
 
2313
2322
  interface ProgressHTMLAttributes<T> extends HTMLAttributes<T> {
2314
- max?: number | string;
2315
- value?: string | ReadonlyArray<string> | number;
2323
+ max?: number | string | undefined;
2324
+ value?: string | ReadonlyArray<string> | number | undefined;
2316
2325
  }
2317
2326
 
2318
2327
  interface SlotHTMLAttributes<T> extends HTMLAttributes<T> {
2319
- name?: string;
2328
+ name?: string | undefined;
2320
2329
  }
2321
2330
 
2322
2331
  interface ScriptHTMLAttributes<T> extends HTMLAttributes<T> {
2323
- async?: boolean;
2332
+ async?: boolean | undefined;
2324
2333
  /** @deprecated */
2325
- charSet?: string;
2326
- crossOrigin?: string;
2327
- defer?: boolean;
2328
- integrity?: string;
2329
- noModule?: boolean;
2330
- nonce?: string;
2331
- referrerPolicy?: HTMLAttributeReferrerPolicy;
2332
- src?: string;
2333
- type?: string;
2334
+ charSet?: string | undefined;
2335
+ crossOrigin?: string | undefined;
2336
+ defer?: boolean | undefined;
2337
+ integrity?: string | undefined;
2338
+ noModule?: boolean | undefined;
2339
+ nonce?: string | undefined;
2340
+ referrerPolicy?: HTMLAttributeReferrerPolicy | undefined;
2341
+ src?: string | undefined;
2342
+ type?: string | undefined;
2334
2343
  }
2335
2344
 
2336
2345
  interface SelectHTMLAttributes<T> extends HTMLAttributes<T> {
2337
- autoComplete?: string;
2338
- autoFocus?: boolean;
2339
- disabled?: boolean;
2340
- form?: string;
2341
- multiple?: boolean;
2342
- name?: string;
2343
- required?: boolean;
2344
- size?: number;
2345
- value?: string | ReadonlyArray<string> | number;
2346
- onChange?: ChangeEventHandler<T>;
2346
+ autoComplete?: string | undefined;
2347
+ autoFocus?: boolean | undefined;
2348
+ disabled?: boolean | undefined;
2349
+ form?: string | undefined;
2350
+ multiple?: boolean | undefined;
2351
+ name?: string | undefined;
2352
+ required?: boolean | undefined;
2353
+ size?: number | undefined;
2354
+ value?: string | ReadonlyArray<string> | number | undefined;
2355
+ onChange?: ChangeEventHandler<T> | undefined;
2347
2356
  }
2348
2357
 
2349
2358
  interface SourceHTMLAttributes<T> extends HTMLAttributes<T> {
2350
- media?: string;
2351
- sizes?: string;
2352
- src?: string;
2353
- srcSet?: string;
2354
- type?: string;
2359
+ height?: number | string | undefined;
2360
+ media?: string | undefined;
2361
+ sizes?: string | undefined;
2362
+ src?: string | undefined;
2363
+ srcSet?: string | undefined;
2364
+ type?: string | undefined;
2365
+ width?: number | string | undefined;
2355
2366
  }
2356
2367
 
2357
2368
  interface StyleHTMLAttributes<T> extends HTMLAttributes<T> {
2358
- media?: string;
2359
- nonce?: string;
2360
- scoped?: boolean;
2361
- type?: string;
2369
+ media?: string | undefined;
2370
+ nonce?: string | undefined;
2371
+ scoped?: boolean | undefined;
2372
+ type?: string | undefined;
2362
2373
  }
2363
2374
 
2364
2375
  interface TableHTMLAttributes<T> extends HTMLAttributes<T> {
2365
- cellPadding?: number | string;
2366
- cellSpacing?: number | string;
2367
- summary?: string;
2368
- width?: number | string;
2376
+ cellPadding?: number | string | undefined;
2377
+ cellSpacing?: number | string | undefined;
2378
+ summary?: string | undefined;
2379
+ width?: number | string | undefined;
2369
2380
  }
2370
2381
 
2371
2382
  interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
2372
- autoComplete?: string;
2373
- autoFocus?: boolean;
2374
- cols?: number;
2375
- dirName?: string;
2376
- disabled?: boolean;
2377
- form?: string;
2378
- maxLength?: number;
2379
- minLength?: number;
2380
- name?: string;
2381
- placeholder?: string;
2382
- readOnly?: boolean;
2383
- required?: boolean;
2384
- rows?: number;
2385
- value?: string | ReadonlyArray<string> | number;
2386
- wrap?: string;
2387
-
2388
- onChange?: ChangeEventHandler<T>;
2383
+ autoComplete?: string | undefined;
2384
+ autoFocus?: boolean | undefined;
2385
+ cols?: number | undefined;
2386
+ dirName?: string | undefined;
2387
+ disabled?: boolean | undefined;
2388
+ form?: string | undefined;
2389
+ maxLength?: number | undefined;
2390
+ minLength?: number | undefined;
2391
+ name?: string | undefined;
2392
+ placeholder?: string | undefined;
2393
+ readOnly?: boolean | undefined;
2394
+ required?: boolean | undefined;
2395
+ rows?: number | undefined;
2396
+ value?: string | ReadonlyArray<string> | number | undefined;
2397
+ wrap?: string | undefined;
2398
+
2399
+ onChange?: ChangeEventHandler<T> | undefined;
2389
2400
  }
2390
2401
 
2391
2402
  interface TdHTMLAttributes<T> extends HTMLAttributes<T> {
2392
- align?: "left" | "center" | "right" | "justify" | "char";
2393
- colSpan?: number;
2394
- headers?: string;
2395
- rowSpan?: number;
2396
- scope?: string;
2397
- abbr?: string;
2398
- height?: number | string;
2399
- width?: number | string;
2400
- valign?: "top" | "middle" | "bottom" | "baseline";
2403
+ align?: "left" | "center" | "right" | "justify" | "char" | undefined;
2404
+ colSpan?: number | undefined;
2405
+ headers?: string | undefined;
2406
+ rowSpan?: number | undefined;
2407
+ scope?: string | undefined;
2408
+ abbr?: string | undefined;
2409
+ height?: number | string | undefined;
2410
+ width?: number | string | undefined;
2411
+ valign?: "top" | "middle" | "bottom" | "baseline" | undefined;
2401
2412
  }
2402
2413
 
2403
2414
  interface ThHTMLAttributes<T> extends HTMLAttributes<T> {
2404
- align?: "left" | "center" | "right" | "justify" | "char";
2405
- colSpan?: number;
2406
- headers?: string;
2407
- rowSpan?: number;
2408
- scope?: string;
2409
- abbr?: string;
2415
+ align?: "left" | "center" | "right" | "justify" | "char" | undefined;
2416
+ colSpan?: number | undefined;
2417
+ headers?: string | undefined;
2418
+ rowSpan?: number | undefined;
2419
+ scope?: string | undefined;
2420
+ abbr?: string | undefined;
2410
2421
  }
2411
2422
 
2412
2423
  interface TimeHTMLAttributes<T> extends HTMLAttributes<T> {
2413
- dateTime?: string;
2424
+ dateTime?: string | undefined;
2414
2425
  }
2415
2426
 
2416
2427
  interface TrackHTMLAttributes<T> extends HTMLAttributes<T> {
2417
- default?: boolean;
2418
- kind?: string;
2419
- label?: string;
2420
- src?: string;
2421
- srcLang?: string;
2428
+ default?: boolean | undefined;
2429
+ kind?: string | undefined;
2430
+ label?: string | undefined;
2431
+ src?: string | undefined;
2432
+ srcLang?: string | undefined;
2422
2433
  }
2423
2434
 
2424
2435
  interface VideoHTMLAttributes<T> extends MediaHTMLAttributes<T> {
2425
- height?: number | string;
2426
- playsInline?: boolean;
2427
- poster?: string;
2428
- width?: number | string;
2429
- disablePictureInPicture?: boolean;
2436
+ height?: number | string | undefined;
2437
+ playsInline?: boolean | undefined;
2438
+ poster?: string | undefined;
2439
+ width?: number | string | undefined;
2440
+ disablePictureInPicture?: boolean | undefined;
2430
2441
  }
2431
2442
 
2432
2443
  // this list is "complete" in that it contains every SVG attribute
@@ -2440,289 +2451,289 @@ declare namespace React {
2440
2451
  interface SVGAttributes<T> extends AriaAttributes, DOMAttributes<T> {
2441
2452
  // Attributes which also defined in HTMLAttributes
2442
2453
  // See comment in SVGDOMPropertyConfig.js
2443
- className?: string;
2444
- color?: string;
2445
- height?: number | string;
2446
- id?: string;
2447
- lang?: string;
2448
- max?: number | string;
2449
- media?: string;
2450
- method?: string;
2451
- min?: number | string;
2452
- name?: string;
2453
- style?: CSSProperties;
2454
- target?: string;
2455
- type?: string;
2456
- width?: number | string;
2454
+ className?: string | undefined;
2455
+ color?: string | undefined;
2456
+ height?: number | string | undefined;
2457
+ id?: string | undefined;
2458
+ lang?: string | undefined;
2459
+ max?: number | string | undefined;
2460
+ media?: string | undefined;
2461
+ method?: string | undefined;
2462
+ min?: number | string | undefined;
2463
+ name?: string | undefined;
2464
+ style?: CSSProperties | undefined;
2465
+ target?: string | undefined;
2466
+ type?: string | undefined;
2467
+ width?: number | string | undefined;
2457
2468
 
2458
2469
  // Other HTML properties supported by SVG elements in browsers
2459
- role?: AriaRole;
2460
- tabIndex?: number;
2461
- crossOrigin?: "anonymous" | "use-credentials" | "";
2470
+ role?: AriaRole | undefined;
2471
+ tabIndex?: number | undefined;
2472
+ crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
2462
2473
 
2463
2474
  // SVG Specific attributes
2464
- accentHeight?: number | string;
2465
- accumulate?: "none" | "sum";
2466
- additive?: "replace" | "sum";
2475
+ accentHeight?: number | string | undefined;
2476
+ accumulate?: "none" | "sum" | undefined;
2477
+ additive?: "replace" | "sum" | undefined;
2467
2478
  alignmentBaseline?: "auto" | "baseline" | "before-edge" | "text-before-edge" | "middle" | "central" | "after-edge" |
2468
- "text-after-edge" | "ideographic" | "alphabetic" | "hanging" | "mathematical" | "inherit";
2469
- allowReorder?: "no" | "yes";
2470
- alphabetic?: number | string;
2471
- amplitude?: number | string;
2472
- arabicForm?: "initial" | "medial" | "terminal" | "isolated";
2473
- ascent?: number | string;
2474
- attributeName?: string;
2475
- attributeType?: string;
2476
- autoReverse?: Booleanish;
2477
- azimuth?: number | string;
2478
- baseFrequency?: number | string;
2479
- baselineShift?: number | string;
2480
- baseProfile?: number | string;
2481
- bbox?: number | string;
2482
- begin?: number | string;
2483
- bias?: number | string;
2484
- by?: number | string;
2485
- calcMode?: number | string;
2486
- capHeight?: number | string;
2487
- clip?: number | string;
2488
- clipPath?: string;
2489
- clipPathUnits?: number | string;
2490
- clipRule?: number | string;
2491
- colorInterpolation?: number | string;
2492
- colorInterpolationFilters?: "auto" | "sRGB" | "linearRGB" | "inherit";
2493
- colorProfile?: number | string;
2494
- colorRendering?: number | string;
2495
- contentScriptType?: number | string;
2496
- contentStyleType?: number | string;
2497
- cursor?: number | string;
2498
- cx?: number | string;
2499
- cy?: number | string;
2500
- d?: string;
2501
- decelerate?: number | string;
2502
- descent?: number | string;
2503
- diffuseConstant?: number | string;
2504
- direction?: number | string;
2505
- display?: number | string;
2506
- divisor?: number | string;
2507
- dominantBaseline?: number | string;
2508
- dur?: number | string;
2509
- dx?: number | string;
2510
- dy?: number | string;
2511
- edgeMode?: number | string;
2512
- elevation?: number | string;
2513
- enableBackground?: number | string;
2514
- end?: number | string;
2515
- exponent?: number | string;
2516
- externalResourcesRequired?: Booleanish;
2517
- fill?: string;
2518
- fillOpacity?: number | string;
2519
- fillRule?: "nonzero" | "evenodd" | "inherit";
2520
- filter?: string;
2521
- filterRes?: number | string;
2522
- filterUnits?: number | string;
2523
- floodColor?: number | string;
2524
- floodOpacity?: number | string;
2525
- focusable?: Booleanish | "auto";
2526
- fontFamily?: string;
2527
- fontSize?: number | string;
2528
- fontSizeAdjust?: number | string;
2529
- fontStretch?: number | string;
2530
- fontStyle?: number | string;
2531
- fontVariant?: number | string;
2532
- fontWeight?: number | string;
2533
- format?: number | string;
2534
- from?: number | string;
2535
- fx?: number | string;
2536
- fy?: number | string;
2537
- g1?: number | string;
2538
- g2?: number | string;
2539
- glyphName?: number | string;
2540
- glyphOrientationHorizontal?: number | string;
2541
- glyphOrientationVertical?: number | string;
2542
- glyphRef?: number | string;
2543
- gradientTransform?: string;
2544
- gradientUnits?: string;
2545
- hanging?: number | string;
2546
- horizAdvX?: number | string;
2547
- horizOriginX?: number | string;
2548
- href?: string;
2549
- ideographic?: number | string;
2550
- imageRendering?: number | string;
2551
- in2?: number | string;
2552
- in?: string;
2553
- intercept?: number | string;
2554
- k1?: number | string;
2555
- k2?: number | string;
2556
- k3?: number | string;
2557
- k4?: number | string;
2558
- k?: number | string;
2559
- kernelMatrix?: number | string;
2560
- kernelUnitLength?: number | string;
2561
- kerning?: number | string;
2562
- keyPoints?: number | string;
2563
- keySplines?: number | string;
2564
- keyTimes?: number | string;
2565
- lengthAdjust?: number | string;
2566
- letterSpacing?: number | string;
2567
- lightingColor?: number | string;
2568
- limitingConeAngle?: number | string;
2569
- local?: number | string;
2570
- markerEnd?: string;
2571
- markerHeight?: number | string;
2572
- markerMid?: string;
2573
- markerStart?: string;
2574
- markerUnits?: number | string;
2575
- markerWidth?: number | string;
2576
- mask?: string;
2577
- maskContentUnits?: number | string;
2578
- maskUnits?: number | string;
2579
- mathematical?: number | string;
2580
- mode?: number | string;
2581
- numOctaves?: number | string;
2582
- offset?: number | string;
2583
- opacity?: number | string;
2584
- operator?: number | string;
2585
- order?: number | string;
2586
- orient?: number | string;
2587
- orientation?: number | string;
2588
- origin?: number | string;
2589
- overflow?: number | string;
2590
- overlinePosition?: number | string;
2591
- overlineThickness?: number | string;
2592
- paintOrder?: number | string;
2593
- panose1?: number | string;
2594
- path?: string;
2595
- pathLength?: number | string;
2596
- patternContentUnits?: string;
2597
- patternTransform?: number | string;
2598
- patternUnits?: string;
2599
- pointerEvents?: number | string;
2600
- points?: string;
2601
- pointsAtX?: number | string;
2602
- pointsAtY?: number | string;
2603
- pointsAtZ?: number | string;
2604
- preserveAlpha?: Booleanish;
2605
- preserveAspectRatio?: string;
2606
- primitiveUnits?: number | string;
2607
- r?: number | string;
2608
- radius?: number | string;
2609
- refX?: number | string;
2610
- refY?: number | string;
2611
- renderingIntent?: number | string;
2612
- repeatCount?: number | string;
2613
- repeatDur?: number | string;
2614
- requiredExtensions?: number | string;
2615
- requiredFeatures?: number | string;
2616
- restart?: number | string;
2617
- result?: string;
2618
- rotate?: number | string;
2619
- rx?: number | string;
2620
- ry?: number | string;
2621
- scale?: number | string;
2622
- seed?: number | string;
2623
- shapeRendering?: number | string;
2624
- slope?: number | string;
2625
- spacing?: number | string;
2626
- specularConstant?: number | string;
2627
- specularExponent?: number | string;
2628
- speed?: number | string;
2629
- spreadMethod?: string;
2630
- startOffset?: number | string;
2631
- stdDeviation?: number | string;
2632
- stemh?: number | string;
2633
- stemv?: number | string;
2634
- stitchTiles?: number | string;
2635
- stopColor?: string;
2636
- stopOpacity?: number | string;
2637
- strikethroughPosition?: number | string;
2638
- strikethroughThickness?: number | string;
2639
- string?: number | string;
2640
- stroke?: string;
2641
- strokeDasharray?: string | number;
2642
- strokeDashoffset?: string | number;
2643
- strokeLinecap?: "butt" | "round" | "square" | "inherit";
2644
- strokeLinejoin?: "miter" | "round" | "bevel" | "inherit";
2645
- strokeMiterlimit?: number | string;
2646
- strokeOpacity?: number | string;
2647
- strokeWidth?: number | string;
2648
- surfaceScale?: number | string;
2649
- systemLanguage?: number | string;
2650
- tableValues?: number | string;
2651
- targetX?: number | string;
2652
- targetY?: number | string;
2653
- textAnchor?: string;
2654
- textDecoration?: number | string;
2655
- textLength?: number | string;
2656
- textRendering?: number | string;
2657
- to?: number | string;
2658
- transform?: string;
2659
- u1?: number | string;
2660
- u2?: number | string;
2661
- underlinePosition?: number | string;
2662
- underlineThickness?: number | string;
2663
- unicode?: number | string;
2664
- unicodeBidi?: number | string;
2665
- unicodeRange?: number | string;
2666
- unitsPerEm?: number | string;
2667
- vAlphabetic?: number | string;
2668
- values?: string;
2669
- vectorEffect?: number | string;
2670
- version?: string;
2671
- vertAdvY?: number | string;
2672
- vertOriginX?: number | string;
2673
- vertOriginY?: number | string;
2674
- vHanging?: number | string;
2675
- vIdeographic?: number | string;
2676
- viewBox?: string;
2677
- viewTarget?: number | string;
2678
- visibility?: number | string;
2679
- vMathematical?: number | string;
2680
- widths?: number | string;
2681
- wordSpacing?: number | string;
2682
- writingMode?: number | string;
2683
- x1?: number | string;
2684
- x2?: number | string;
2685
- x?: number | string;
2686
- xChannelSelector?: string;
2687
- xHeight?: number | string;
2688
- xlinkActuate?: string;
2689
- xlinkArcrole?: string;
2690
- xlinkHref?: string;
2691
- xlinkRole?: string;
2692
- xlinkShow?: string;
2693
- xlinkTitle?: string;
2694
- xlinkType?: string;
2695
- xmlBase?: string;
2696
- xmlLang?: string;
2697
- xmlns?: string;
2698
- xmlnsXlink?: string;
2699
- xmlSpace?: string;
2700
- y1?: number | string;
2701
- y2?: number | string;
2702
- y?: number | string;
2703
- yChannelSelector?: string;
2704
- z?: number | string;
2705
- zoomAndPan?: string;
2479
+ "text-after-edge" | "ideographic" | "alphabetic" | "hanging" | "mathematical" | "inherit" | undefined;
2480
+ allowReorder?: "no" | "yes" | undefined;
2481
+ alphabetic?: number | string | undefined;
2482
+ amplitude?: number | string | undefined;
2483
+ arabicForm?: "initial" | "medial" | "terminal" | "isolated" | undefined;
2484
+ ascent?: number | string | undefined;
2485
+ attributeName?: string | undefined;
2486
+ attributeType?: string | undefined;
2487
+ autoReverse?: Booleanish | undefined;
2488
+ azimuth?: number | string | undefined;
2489
+ baseFrequency?: number | string | undefined;
2490
+ baselineShift?: number | string | undefined;
2491
+ baseProfile?: number | string | undefined;
2492
+ bbox?: number | string | undefined;
2493
+ begin?: number | string | undefined;
2494
+ bias?: number | string | undefined;
2495
+ by?: number | string | undefined;
2496
+ calcMode?: number | string | undefined;
2497
+ capHeight?: number | string | undefined;
2498
+ clip?: number | string | undefined;
2499
+ clipPath?: string | undefined;
2500
+ clipPathUnits?: number | string | undefined;
2501
+ clipRule?: number | string | undefined;
2502
+ colorInterpolation?: number | string | undefined;
2503
+ colorInterpolationFilters?: "auto" | "sRGB" | "linearRGB" | "inherit" | undefined;
2504
+ colorProfile?: number | string | undefined;
2505
+ colorRendering?: number | string | undefined;
2506
+ contentScriptType?: number | string | undefined;
2507
+ contentStyleType?: number | string | undefined;
2508
+ cursor?: number | string | undefined;
2509
+ cx?: number | string | undefined;
2510
+ cy?: number | string | undefined;
2511
+ d?: string | undefined;
2512
+ decelerate?: number | string | undefined;
2513
+ descent?: number | string | undefined;
2514
+ diffuseConstant?: number | string | undefined;
2515
+ direction?: number | string | undefined;
2516
+ display?: number | string | undefined;
2517
+ divisor?: number | string | undefined;
2518
+ dominantBaseline?: number | string | undefined;
2519
+ dur?: number | string | undefined;
2520
+ dx?: number | string | undefined;
2521
+ dy?: number | string | undefined;
2522
+ edgeMode?: number | string | undefined;
2523
+ elevation?: number | string | undefined;
2524
+ enableBackground?: number | string | undefined;
2525
+ end?: number | string | undefined;
2526
+ exponent?: number | string | undefined;
2527
+ externalResourcesRequired?: Booleanish | undefined;
2528
+ fill?: string | undefined;
2529
+ fillOpacity?: number | string | undefined;
2530
+ fillRule?: "nonzero" | "evenodd" | "inherit" | undefined;
2531
+ filter?: string | undefined;
2532
+ filterRes?: number | string | undefined;
2533
+ filterUnits?: number | string | undefined;
2534
+ floodColor?: number | string | undefined;
2535
+ floodOpacity?: number | string | undefined;
2536
+ focusable?: Booleanish | "auto" | undefined;
2537
+ fontFamily?: string | undefined;
2538
+ fontSize?: number | string | undefined;
2539
+ fontSizeAdjust?: number | string | undefined;
2540
+ fontStretch?: number | string | undefined;
2541
+ fontStyle?: number | string | undefined;
2542
+ fontVariant?: number | string | undefined;
2543
+ fontWeight?: number | string | undefined;
2544
+ format?: number | string | undefined;
2545
+ from?: number | string | undefined;
2546
+ fx?: number | string | undefined;
2547
+ fy?: number | string | undefined;
2548
+ g1?: number | string | undefined;
2549
+ g2?: number | string | undefined;
2550
+ glyphName?: number | string | undefined;
2551
+ glyphOrientationHorizontal?: number | string | undefined;
2552
+ glyphOrientationVertical?: number | string | undefined;
2553
+ glyphRef?: number | string | undefined;
2554
+ gradientTransform?: string | undefined;
2555
+ gradientUnits?: string | undefined;
2556
+ hanging?: number | string | undefined;
2557
+ horizAdvX?: number | string | undefined;
2558
+ horizOriginX?: number | string | undefined;
2559
+ href?: string | undefined;
2560
+ ideographic?: number | string | undefined;
2561
+ imageRendering?: number | string | undefined;
2562
+ in2?: number | string | undefined;
2563
+ in?: string | undefined;
2564
+ intercept?: number | string | undefined;
2565
+ k1?: number | string | undefined;
2566
+ k2?: number | string | undefined;
2567
+ k3?: number | string | undefined;
2568
+ k4?: number | string | undefined;
2569
+ k?: number | string | undefined;
2570
+ kernelMatrix?: number | string | undefined;
2571
+ kernelUnitLength?: number | string | undefined;
2572
+ kerning?: number | string | undefined;
2573
+ keyPoints?: number | string | undefined;
2574
+ keySplines?: number | string | undefined;
2575
+ keyTimes?: number | string | undefined;
2576
+ lengthAdjust?: number | string | undefined;
2577
+ letterSpacing?: number | string | undefined;
2578
+ lightingColor?: number | string | undefined;
2579
+ limitingConeAngle?: number | string | undefined;
2580
+ local?: number | string | undefined;
2581
+ markerEnd?: string | undefined;
2582
+ markerHeight?: number | string | undefined;
2583
+ markerMid?: string | undefined;
2584
+ markerStart?: string | undefined;
2585
+ markerUnits?: number | string | undefined;
2586
+ markerWidth?: number | string | undefined;
2587
+ mask?: string | undefined;
2588
+ maskContentUnits?: number | string | undefined;
2589
+ maskUnits?: number | string | undefined;
2590
+ mathematical?: number | string | undefined;
2591
+ mode?: number | string | undefined;
2592
+ numOctaves?: number | string | undefined;
2593
+ offset?: number | string | undefined;
2594
+ opacity?: number | string | undefined;
2595
+ operator?: number | string | undefined;
2596
+ order?: number | string | undefined;
2597
+ orient?: number | string | undefined;
2598
+ orientation?: number | string | undefined;
2599
+ origin?: number | string | undefined;
2600
+ overflow?: number | string | undefined;
2601
+ overlinePosition?: number | string | undefined;
2602
+ overlineThickness?: number | string | undefined;
2603
+ paintOrder?: number | string | undefined;
2604
+ panose1?: number | string | undefined;
2605
+ path?: string | undefined;
2606
+ pathLength?: number | string | undefined;
2607
+ patternContentUnits?: string | undefined;
2608
+ patternTransform?: number | string | undefined;
2609
+ patternUnits?: string | undefined;
2610
+ pointerEvents?: number | string | undefined;
2611
+ points?: string | undefined;
2612
+ pointsAtX?: number | string | undefined;
2613
+ pointsAtY?: number | string | undefined;
2614
+ pointsAtZ?: number | string | undefined;
2615
+ preserveAlpha?: Booleanish | undefined;
2616
+ preserveAspectRatio?: string | undefined;
2617
+ primitiveUnits?: number | string | undefined;
2618
+ r?: number | string | undefined;
2619
+ radius?: number | string | undefined;
2620
+ refX?: number | string | undefined;
2621
+ refY?: number | string | undefined;
2622
+ renderingIntent?: number | string | undefined;
2623
+ repeatCount?: number | string | undefined;
2624
+ repeatDur?: number | string | undefined;
2625
+ requiredExtensions?: number | string | undefined;
2626
+ requiredFeatures?: number | string | undefined;
2627
+ restart?: number | string | undefined;
2628
+ result?: string | undefined;
2629
+ rotate?: number | string | undefined;
2630
+ rx?: number | string | undefined;
2631
+ ry?: number | string | undefined;
2632
+ scale?: number | string | undefined;
2633
+ seed?: number | string | undefined;
2634
+ shapeRendering?: number | string | undefined;
2635
+ slope?: number | string | undefined;
2636
+ spacing?: number | string | undefined;
2637
+ specularConstant?: number | string | undefined;
2638
+ specularExponent?: number | string | undefined;
2639
+ speed?: number | string | undefined;
2640
+ spreadMethod?: string | undefined;
2641
+ startOffset?: number | string | undefined;
2642
+ stdDeviation?: number | string | undefined;
2643
+ stemh?: number | string | undefined;
2644
+ stemv?: number | string | undefined;
2645
+ stitchTiles?: number | string | undefined;
2646
+ stopColor?: string | undefined;
2647
+ stopOpacity?: number | string | undefined;
2648
+ strikethroughPosition?: number | string | undefined;
2649
+ strikethroughThickness?: number | string | undefined;
2650
+ string?: number | string | undefined;
2651
+ stroke?: string | undefined;
2652
+ strokeDasharray?: string | number | undefined;
2653
+ strokeDashoffset?: string | number | undefined;
2654
+ strokeLinecap?: "butt" | "round" | "square" | "inherit" | undefined;
2655
+ strokeLinejoin?: "miter" | "round" | "bevel" | "inherit" | undefined;
2656
+ strokeMiterlimit?: number | string | undefined;
2657
+ strokeOpacity?: number | string | undefined;
2658
+ strokeWidth?: number | string | undefined;
2659
+ surfaceScale?: number | string | undefined;
2660
+ systemLanguage?: number | string | undefined;
2661
+ tableValues?: number | string | undefined;
2662
+ targetX?: number | string | undefined;
2663
+ targetY?: number | string | undefined;
2664
+ textAnchor?: string | undefined;
2665
+ textDecoration?: number | string | undefined;
2666
+ textLength?: number | string | undefined;
2667
+ textRendering?: number | string | undefined;
2668
+ to?: number | string | undefined;
2669
+ transform?: string | undefined;
2670
+ u1?: number | string | undefined;
2671
+ u2?: number | string | undefined;
2672
+ underlinePosition?: number | string | undefined;
2673
+ underlineThickness?: number | string | undefined;
2674
+ unicode?: number | string | undefined;
2675
+ unicodeBidi?: number | string | undefined;
2676
+ unicodeRange?: number | string | undefined;
2677
+ unitsPerEm?: number | string | undefined;
2678
+ vAlphabetic?: number | string | undefined;
2679
+ values?: string | undefined;
2680
+ vectorEffect?: number | string | undefined;
2681
+ version?: string | undefined;
2682
+ vertAdvY?: number | string | undefined;
2683
+ vertOriginX?: number | string | undefined;
2684
+ vertOriginY?: number | string | undefined;
2685
+ vHanging?: number | string | undefined;
2686
+ vIdeographic?: number | string | undefined;
2687
+ viewBox?: string | undefined;
2688
+ viewTarget?: number | string | undefined;
2689
+ visibility?: number | string | undefined;
2690
+ vMathematical?: number | string | undefined;
2691
+ widths?: number | string | undefined;
2692
+ wordSpacing?: number | string | undefined;
2693
+ writingMode?: number | string | undefined;
2694
+ x1?: number | string | undefined;
2695
+ x2?: number | string | undefined;
2696
+ x?: number | string | undefined;
2697
+ xChannelSelector?: string | undefined;
2698
+ xHeight?: number | string | undefined;
2699
+ xlinkActuate?: string | undefined;
2700
+ xlinkArcrole?: string | undefined;
2701
+ xlinkHref?: string | undefined;
2702
+ xlinkRole?: string | undefined;
2703
+ xlinkShow?: string | undefined;
2704
+ xlinkTitle?: string | undefined;
2705
+ xlinkType?: string | undefined;
2706
+ xmlBase?: string | undefined;
2707
+ xmlLang?: string | undefined;
2708
+ xmlns?: string | undefined;
2709
+ xmlnsXlink?: string | undefined;
2710
+ xmlSpace?: string | undefined;
2711
+ y1?: number | string | undefined;
2712
+ y2?: number | string | undefined;
2713
+ y?: number | string | undefined;
2714
+ yChannelSelector?: string | undefined;
2715
+ z?: number | string | undefined;
2716
+ zoomAndPan?: string | undefined;
2706
2717
  }
2707
2718
 
2708
2719
  interface WebViewHTMLAttributes<T> extends HTMLAttributes<T> {
2709
- allowFullScreen?: boolean;
2710
- allowpopups?: boolean;
2711
- autoFocus?: boolean;
2712
- autosize?: boolean;
2713
- blinkfeatures?: string;
2714
- disableblinkfeatures?: string;
2715
- disableguestresize?: boolean;
2716
- disablewebsecurity?: boolean;
2717
- guestinstance?: string;
2718
- httpreferrer?: string;
2719
- nodeintegration?: boolean;
2720
- partition?: string;
2721
- plugins?: boolean;
2722
- preload?: string;
2723
- src?: string;
2724
- useragent?: string;
2725
- webpreferences?: string;
2720
+ allowFullScreen?: boolean | undefined;
2721
+ allowpopups?: boolean | undefined;
2722
+ autoFocus?: boolean | undefined;
2723
+ autosize?: boolean | undefined;
2724
+ blinkfeatures?: string | undefined;
2725
+ disableblinkfeatures?: string | undefined;
2726
+ disableguestresize?: boolean | undefined;
2727
+ disablewebsecurity?: boolean | undefined;
2728
+ guestinstance?: string | undefined;
2729
+ httpreferrer?: string | undefined;
2730
+ nodeintegration?: boolean | undefined;
2731
+ partition?: string | undefined;
2732
+ plugins?: boolean | undefined;
2733
+ preload?: string | undefined;
2734
+ src?: string | undefined;
2735
+ useragent?: string | undefined;
2736
+ webpreferences?: string | undefined;
2726
2737
  }
2727
2738
 
2728
2739
  //