@types/react 17.0.14 → 17.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. react/README.md +1 -1
  2. react/index.d.ts +17 -14
  3. react/package.json +2 -2
react/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for React (http://facebook.github.io/reac
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Wed, 07 Jul 2021 18:31:44 GMT
11
+ * Last updated: Sat, 14 Aug 2021 15:31:22 GMT
12
12
  * Dependencies: [@types/csstype](https://npmjs.com/package/@types/csstype), [@types/prop-types](https://npmjs.com/package/@types/prop-types), [@types/scheduler](https://npmjs.com/package/@types/scheduler)
13
13
  * Global values: `React`
14
14
 
react/index.d.ts CHANGED
@@ -1555,14 +1555,14 @@ declare namespace React {
1555
1555
  /** Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application. */
1556
1556
  'aria-activedescendant'?: string | undefined;
1557
1557
  /** Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute. */
1558
- 'aria-atomic'?: boolean | 'false' | 'true' | undefined;
1558
+ 'aria-atomic'?: Booleanish | undefined;
1559
1559
  /**
1560
1560
  * Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be
1561
1561
  * presented if they are made.
1562
1562
  */
1563
1563
  'aria-autocomplete'?: 'none' | 'inline' | 'list' | 'both' | undefined;
1564
1564
  /** Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user. */
1565
- 'aria-busy'?: boolean | 'false' | 'true' | undefined;
1565
+ 'aria-busy'?: Booleanish | undefined;
1566
1566
  /**
1567
1567
  * Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.
1568
1568
  * @see aria-pressed @see aria-selected.
@@ -1604,7 +1604,7 @@ declare namespace React {
1604
1604
  * Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.
1605
1605
  * @see aria-hidden @see aria-readonly.
1606
1606
  */
1607
- 'aria-disabled'?: boolean | 'false' | 'true' | undefined;
1607
+ 'aria-disabled'?: Booleanish | undefined;
1608
1608
  /**
1609
1609
  * Indicates what functions can be performed when a dragged object is released on the drop target.
1610
1610
  * @deprecated in ARIA 1.1
@@ -1616,7 +1616,7 @@ declare namespace React {
1616
1616
  */
1617
1617
  'aria-errormessage'?: string | undefined;
1618
1618
  /** Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. */
1619
- 'aria-expanded'?: boolean | 'false' | 'true' | undefined;
1619
+ 'aria-expanded'?: Booleanish | undefined;
1620
1620
  /**
1621
1621
  * Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,
1622
1622
  * allows assistive technology to override the general default of reading in document source order.
@@ -1626,14 +1626,14 @@ declare namespace React {
1626
1626
  * Indicates an element's "grabbed" state in a drag-and-drop operation.
1627
1627
  * @deprecated in ARIA 1.1
1628
1628
  */
1629
- 'aria-grabbed'?: boolean | 'false' | 'true' | undefined;
1629
+ 'aria-grabbed'?: Booleanish | undefined;
1630
1630
  /** Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element. */
1631
1631
  'aria-haspopup'?: boolean | 'false' | 'true' | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog' | undefined;
1632
1632
  /**
1633
1633
  * Indicates whether the element is exposed to an accessibility API.
1634
1634
  * @see aria-disabled.
1635
1635
  */
1636
- 'aria-hidden'?: boolean | 'false' | 'true' | undefined;
1636
+ 'aria-hidden'?: Booleanish | undefined;
1637
1637
  /**
1638
1638
  * Indicates the entered value does not conform to the format expected by the application.
1639
1639
  * @see aria-errormessage.
@@ -1656,11 +1656,11 @@ declare namespace React {
1656
1656
  /** Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region. */
1657
1657
  'aria-live'?: 'off' | 'assertive' | 'polite' | undefined;
1658
1658
  /** Indicates whether an element is modal when displayed. */
1659
- 'aria-modal'?: boolean | 'false' | 'true' | undefined;
1659
+ 'aria-modal'?: Booleanish | undefined;
1660
1660
  /** Indicates whether a text box accepts multiple lines of input or only a single line. */
1661
- 'aria-multiline'?: boolean | 'false' | 'true' | undefined;
1661
+ 'aria-multiline'?: Booleanish | undefined;
1662
1662
  /** Indicates that the user may select more than one item from the current selectable descendants. */
1663
- 'aria-multiselectable'?: boolean | 'false' | 'true' | undefined;
1663
+ 'aria-multiselectable'?: Booleanish | undefined;
1664
1664
  /** Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous. */
1665
1665
  'aria-orientation'?: 'horizontal' | 'vertical' | undefined;
1666
1666
  /**
@@ -1688,14 +1688,14 @@ declare namespace React {
1688
1688
  * Indicates that the element is not editable, but is otherwise operable.
1689
1689
  * @see aria-disabled.
1690
1690
  */
1691
- 'aria-readonly'?: boolean | 'false' | 'true' | undefined;
1691
+ 'aria-readonly'?: Booleanish | undefined;
1692
1692
  /**
1693
1693
  * Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.
1694
1694
  * @see aria-atomic.
1695
1695
  */
1696
1696
  'aria-relevant'?: 'additions' | 'additions removals' | 'additions text' | 'all' | 'removals' | 'removals additions' | 'removals text' | 'text' | 'text additions' | 'text removals' | undefined;
1697
1697
  /** Indicates that user input is required on the element before a form may be submitted. */
1698
- 'aria-required'?: boolean | 'false' | 'true' | undefined;
1698
+ 'aria-required'?: Booleanish | undefined;
1699
1699
  /** Defines a human-readable, author-localized description for the role of an element. */
1700
1700
  'aria-roledescription'?: string | undefined;
1701
1701
  /**
@@ -1717,7 +1717,7 @@ declare namespace React {
1717
1717
  * Indicates the current "selected" state of various widgets.
1718
1718
  * @see aria-checked @see aria-pressed.
1719
1719
  */
1720
- 'aria-selected'?: boolean | 'false' | 'true' | undefined;
1720
+ 'aria-selected'?: Booleanish | undefined;
1721
1721
  /**
1722
1722
  * Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.
1723
1723
  * @see aria-posinset.
@@ -2256,6 +2256,7 @@ declare namespace React {
2256
2256
  content?: string | undefined;
2257
2257
  httpEquiv?: string | undefined;
2258
2258
  name?: string | undefined;
2259
+ media?: string | undefined;
2259
2260
  }
2260
2261
 
2261
2262
  interface MeterHTMLAttributes<T> extends HTMLAttributes<T> {
@@ -2350,11 +2351,13 @@ declare namespace React {
2350
2351
  }
2351
2352
 
2352
2353
  interface SourceHTMLAttributes<T> extends HTMLAttributes<T> {
2354
+ height?: number | string | undefined;
2353
2355
  media?: string | undefined;
2354
2356
  sizes?: string | undefined;
2355
2357
  src?: string | undefined;
2356
2358
  srcSet?: string | undefined;
2357
2359
  type?: string | undefined;
2360
+ width?: number | string | undefined;
2358
2361
  }
2359
2362
 
2360
2363
  interface StyleHTMLAttributes<T> extends HTMLAttributes<T> {
@@ -2954,9 +2957,9 @@ declare namespace React {
2954
2957
  // ----------------------------------------------------------------------
2955
2958
 
2956
2959
  interface ReactChildren {
2957
- map<T, C>(children: C | C[], fn: (child: C, index: number) => T):
2960
+ map<T, C>(children: C | ReadonlyArray<C>, fn: (child: C, index: number) => T):
2958
2961
  C extends null | undefined ? C : Array<Exclude<T, boolean | null | undefined>>;
2959
- forEach<C>(children: C | C[], fn: (child: C, index: number) => void): void;
2962
+ forEach<C>(children: C | ReadonlyArray<C>, fn: (child: C, index: number) => void): void;
2960
2963
  count(children: any): number;
2961
2964
  only<C>(children: C): C extends any[] ? never : C;
2962
2965
  toArray(children: ReactNode | ReactNode[]): Array<Exclude<ReactNode, boolean | null | undefined>>;
react/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "17.0.14",
3
+ "version": "17.0.18",
4
4
  "description": "TypeScript definitions for React",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
6
6
  "license": "MIT",
@@ -146,6 +146,6 @@
146
146
  "@types/scheduler": "*",
147
147
  "csstype": "^3.0.2"
148
148
  },
149
- "typesPublisherContentHash": "29282cd8d1145f8afaa91cacf35059601e19fc519acb89af72a531adddbcbcb5",
149
+ "typesPublisherContentHash": "3b3e90b6bdb61eda54db8ca55583b003f8bd10bb9886fb286da487313f9b446f",
150
150
  "typeScriptVersion": "3.6"
151
151
  }