@types/react 16.14.9 → 16.14.13

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