@types/react 16.14.7 → 16.14.11

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