@types/react 16.14.20 → 17.0.2

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