@types/react 17.0.12 → 17.0.16

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