@types/react 17.0.13 → 17.0.17

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