@types/react 18.0.10 → 18.0.13
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/README.md +1 -1
- react/global.d.ts +2 -0
- react/index.d.ts +9 -2
- react/package.json +3 -3
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:
|
11
|
+
* Last updated: Thu, 16 Jun 2022 09:31:35 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/global.d.ts
CHANGED
react/index.d.ts
CHANGED
@@ -796,7 +796,7 @@ declare namespace React {
|
|
796
796
|
: P
|
797
797
|
: P;
|
798
798
|
|
799
|
-
type PropsWithChildren<P> = P & { children?: ReactNode | undefined };
|
799
|
+
type PropsWithChildren<P = unknown> = P & { children?: ReactNode | undefined };
|
800
800
|
|
801
801
|
/**
|
802
802
|
* NOTE: prefer ComponentPropsWithRef, if the ref is forwarded,
|
@@ -1372,7 +1372,9 @@ declare namespace React {
|
|
1372
1372
|
interface DOMAttributes<T> {
|
1373
1373
|
children?: ReactNode | undefined;
|
1374
1374
|
dangerouslySetInnerHTML?: {
|
1375
|
-
|
1375
|
+
// Should be InnerHTML['innerHTML'].
|
1376
|
+
// But unfortunately we're mixing renderer-specific type declarations.
|
1377
|
+
__html: string | TrustedHTML;
|
1376
1378
|
} | undefined;
|
1377
1379
|
|
1378
1380
|
// Clipboard Events
|
@@ -2426,8 +2428,13 @@ declare namespace React {
|
|
2426
2428
|
}
|
2427
2429
|
|
2428
2430
|
interface TableHTMLAttributes<T> extends HTMLAttributes<T> {
|
2431
|
+
align?: "left" | "center" | "right" | undefined;
|
2432
|
+
bgcolor?: string | undefined;
|
2433
|
+
border?: number | undefined;
|
2429
2434
|
cellPadding?: number | string | undefined;
|
2430
2435
|
cellSpacing?: number | string | undefined;
|
2436
|
+
frame?: boolean | undefined;
|
2437
|
+
rules?: "none" | "groups" | "rows" | "columns" | "all" | undefined;
|
2431
2438
|
summary?: string | undefined;
|
2432
2439
|
width?: number | string | undefined;
|
2433
2440
|
}
|
react/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react",
|
3
|
-
"version": "18.0.
|
3
|
+
"version": "18.0.13",
|
4
4
|
"description": "TypeScript definitions for React",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
|
6
6
|
"license": "MIT",
|
@@ -146,8 +146,8 @@
|
|
146
146
|
"@types/scheduler": "*",
|
147
147
|
"csstype": "^3.0.2"
|
148
148
|
},
|
149
|
-
"typesPublisherContentHash": "
|
150
|
-
"typeScriptVersion": "
|
149
|
+
"typesPublisherContentHash": "993a6c1cee3eee852c6cc7c50cdec06272bb1d25cd7d531b1907deb226fa1a83",
|
150
|
+
"typeScriptVersion": "4.0",
|
151
151
|
"exports": {
|
152
152
|
".": {
|
153
153
|
"types": {
|