@types/react 16.9.43 → 16.9.47

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 +5 -2
  3. react/package.json +4 -4
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: Sat, 11 Jul 2020 19:17:49 GMT
11
+ * Last updated: Tue, 25 Aug 2020 06:10:10 GMT
12
12
  * Dependencies: [@types/csstype](https://npmjs.com/package/@types/csstype), [@types/prop-types](https://npmjs.com/package/@types/prop-types)
13
13
  * Global values: `React`
14
14
 
react/index.d.ts CHANGED
@@ -134,7 +134,7 @@ declare namespace React {
134
134
  * inside your component or have to validate them.
135
135
  */
136
136
  interface Attributes {
137
- key?: Key;
137
+ key?: Key | null;
138
138
  }
139
139
  interface RefAttributes<T> extends Attributes {
140
140
  ref?: Ref<T>;
@@ -1200,6 +1200,7 @@ declare namespace React {
1200
1200
 
1201
1201
  interface KeyboardEvent<T = Element> extends SyntheticEvent<T, NativeKeyboardEvent> {
1202
1202
  altKey: boolean;
1203
+ /** @deprecated */
1203
1204
  charCode: number;
1204
1205
  ctrlKey: boolean;
1205
1206
  /**
@@ -1210,6 +1211,7 @@ declare namespace React {
1210
1211
  * See the [DOM Level 3 Events spec](https://www.w3.org/TR/uievents-key/#named-key-attribute-values). for possible values
1211
1212
  */
1212
1213
  key: string;
1214
+ /** @deprecated */
1213
1215
  keyCode: number;
1214
1216
  locale: string;
1215
1217
  location: number;
@@ -1686,7 +1688,7 @@ declare namespace React {
1686
1688
  * Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.
1687
1689
  * @see aria-atomic.
1688
1690
  */
1689
- 'aria-relevant'?: 'additions' | 'additions text' | 'all' | 'removals' | 'text';
1691
+ 'aria-relevant'?: 'additions' | 'additions removals' | 'additions text' | 'all' | 'removals' | 'removals additions' | 'removals text' | 'text' | 'text additions' | 'text removals';
1690
1692
  /** Indicates that user input is required on the element before a form may be submitted. */
1691
1693
  'aria-required'?: boolean | 'false' | 'true';
1692
1694
  /** Defines a human-readable, author-localized description for the role of an element. */
@@ -2025,6 +2027,7 @@ declare namespace React {
2025
2027
  allowTransparency?: boolean;
2026
2028
  frameBorder?: number | string;
2027
2029
  height?: number | string;
2030
+ loading?: "eager" | "lazy";
2028
2031
  marginHeight?: number;
2029
2032
  marginWidth?: number;
2030
2033
  name?: string;
react/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "16.9.43",
3
+ "version": "16.9.47",
4
4
  "description": "TypeScript definitions for React",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -142,8 +142,8 @@
142
142
  "scripts": {},
143
143
  "dependencies": {
144
144
  "@types/prop-types": "*",
145
- "csstype": "^2.2.0"
145
+ "csstype": "^3.0.2"
146
146
  },
147
- "typesPublisherContentHash": "4c80fe5a9ea8f2595672844b2abdfb11919dd20bebc5a34dafd30adbdea30c4f",
148
- "typeScriptVersion": "3.0"
147
+ "typesPublisherContentHash": "2c49524c0b1ca37340f208781694ce9a70f1e26d475d06cf8b8c22325e206c7b",
148
+ "typeScriptVersion": "3.1"
149
149
  }