@types/react 16.14.17 → 16.14.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
react v16.14/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/v16.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 12 Oct 2021 17:01:24 GMT
11
+ * Last updated: Mon, 15 Nov 2021 22:01:26 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 v16.14/index.d.ts CHANGED
@@ -79,7 +79,7 @@ declare namespace React {
79
79
 
80
80
  type JSXElementConstructor<P> =
81
81
  | ((props: P) => ReactElement<any, any> | null)
82
- | (new (props: P) => Component<P, any>);
82
+ | (new (props: P) => Component<any, any>);
83
83
 
84
84
  interface RefObject<T> {
85
85
  readonly current: T | null;
@@ -831,7 +831,7 @@ declare namespace React {
831
831
  ? JSX.IntrinsicElements[T]
832
832
  : {};
833
833
  type ComponentPropsWithRef<T extends ElementType> =
834
- T extends ComponentClass<infer P>
834
+ T extends (new (props: infer P) => Component<any, any>)
835
835
  ? PropsWithoutRef<P> & RefAttributes<InstanceType<T>>
836
836
  : PropsWithRef<ComponentProps<T>>;
837
837
  type ComponentPropsWithoutRef<T extends ElementType> =
@@ -1208,7 +1208,7 @@ declare namespace React {
1208
1208
  target: EventTarget & T;
1209
1209
  }
1210
1210
 
1211
- interface KeyboardEvent<T = Element> extends SyntheticEvent<T, NativeKeyboardEvent> {
1211
+ interface KeyboardEvent<T = Element> extends UIEvent<T, NativeKeyboardEvent> {
1212
1212
  altKey: boolean;
1213
1213
  /** @deprecated */
1214
1214
  charCode: number;
@@ -2252,6 +2252,7 @@ declare namespace React {
2252
2252
  href?: string | undefined;
2253
2253
  hrefLang?: string | undefined;
2254
2254
  integrity?: string | undefined;
2255
+ imageSrcSet?: string | undefined;
2255
2256
  media?: string | undefined;
2256
2257
  referrerPolicy?: HTMLAttributeReferrerPolicy | undefined;
2257
2258
  rel?: string | undefined;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "16.14.17",
3
+ "version": "16.14.21",
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": "48ad751fc2fd8527b1223c2b39e69d63a1554294fae96e78cd0326c034f89699",
149
+ "typesPublisherContentHash": "ed8af725799c9c315c58de6b3449ad72f3ce91efe46a36697a1dc4386ed93d47",
150
150
  "typeScriptVersion": "3.7"
151
151
  }