@types/react 18.0.15 → 18.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 +2 -2
  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: Tue, 05 Jul 2022 23:02:57 GMT
11
+ * Last updated: Tue, 30 Aug 2022 16:02:46 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
@@ -97,7 +97,7 @@ declare namespace React {
97
97
  * - React stateless functional components that forward a `ref` will give you the `ElementRef` of the forwarded
98
98
  * to component.
99
99
  *
100
- * `C` must be the type _of_ a React component so you need to use typeof as in React.ElementRef<typeof MyComponent>.
100
+ * `C` must be the type _of_ a React component so you need to use typeof as in `React.ElementRef<typeof MyComponent>`.
101
101
  *
102
102
  * @todo In Flow, this works a little different with forwarded refs and the `AbstractComponent` that
103
103
  * `React.forwardRef()` returns.
@@ -1272,7 +1272,6 @@ declare namespace React {
1272
1272
  shiftKey: boolean;
1273
1273
  /** @deprecated */
1274
1274
  which: number;
1275
- target: EventTarget & T;
1276
1275
  }
1277
1276
 
1278
1277
  interface MouseEvent<T = Element, E = NativeMouseEvent> extends UIEvent<T, E> {
@@ -2143,6 +2142,7 @@ declare namespace React {
2143
2142
  name?: string | undefined;
2144
2143
  noValidate?: boolean | undefined;
2145
2144
  target?: string | undefined;
2145
+ rel?: string | undefined;
2146
2146
  }
2147
2147
 
2148
2148
  interface HtmlHTMLAttributes<T> extends HTMLAttributes<T> {
react/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "18.0.15",
3
+ "version": "18.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,7 +146,7 @@
146
146
  "@types/scheduler": "*",
147
147
  "csstype": "^3.0.2"
148
148
  },
149
- "typesPublisherContentHash": "e04632ed76be3c9af124576a7dd74e06df3f4d16a95c555e490183c5dee95f04",
149
+ "typesPublisherContentHash": "c6d4e20ad7a5b313c9656e133d8a3e92f2740e89e428fbe4f0a7189a38937f67",
150
150
  "typeScriptVersion": "4.0",
151
151
  "exports": {
152
152
  ".": {