@types/react 16.14.10 → 16.14.11

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