@types/react
Advanced tools
Comparing version 18.2.76 to 18.2.77
@@ -33,2 +33,7 @@ /** | ||
/** | ||
* @internal | ||
*/ | ||
interface ReactContextAsReactNode extends React.Context<React.ReactNode> {} | ||
declare module "." { | ||
@@ -145,2 +150,21 @@ interface ThenableImpl<T> { | ||
} | ||
/** | ||
* @internal Use `Awaited<ReactNode>` instead | ||
*/ | ||
// Helper type to enable `Awaited<ReactNode>`. | ||
// Must be a copy of the non-thenables of `ReactNode`. | ||
type AwaitedReactNode = | ||
| ReactElement | ||
| string | ||
| number | ||
| Iterable<AwaitedReactNode> | ||
| ReactPortal | ||
| boolean | ||
| null | ||
| undefined; | ||
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_REACT_NODES { | ||
contexts: ReactContextAsReactNode; | ||
promises: Promise<AwaitedReactNode>; | ||
} | ||
} |
@@ -45,20 +45,2 @@ /** | ||
declare module "." { | ||
/** | ||
* @internal Use `Awaited<ReactNode>` instead | ||
*/ | ||
// Helper type to enable `Awaited<ReactNode>`. | ||
// Must be a copy of the non-thenables of `ReactNode`. | ||
type AwaitedReactNode = | ||
| ReactElement | ||
| string | ||
| number | ||
| Iterable<AwaitedReactNode> | ||
| ReactPortal | ||
| boolean | ||
| null | ||
| undefined; | ||
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_REACT_NODES { | ||
promises: Promise<AwaitedReactNode>; | ||
} | ||
export interface SuspenseProps { | ||
@@ -65,0 +47,0 @@ /** |
{ | ||
"name": "@types/react", | ||
"version": "18.2.76", | ||
"version": "18.2.77", | ||
"description": "TypeScript definitions for react", | ||
@@ -208,4 +208,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react", | ||
}, | ||
"typesPublisherContentHash": "8c16114990a8e048e26e229aeea3fc3809477c4cd0c0c10b84db39ded9fd44c6", | ||
"typesPublisherContentHash": "2773ff59b2dd54e1c4b4a9ab41c84eeb90f5e19a520b41273cb1ac6538b0e49c", | ||
"typeScriptVersion": "4.7" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Thu, 11 Apr 2024 17:35:56 GMT | ||
* Last updated: Thu, 11 Apr 2024 21:35:20 GMT | ||
* Dependencies: [@types/prop-types](https://npmjs.com/package/@types/prop-types), [csstype](https://npmjs.com/package/csstype) | ||
@@ -14,0 +14,0 @@ |
@@ -33,2 +33,7 @@ /** | ||
/** | ||
* @internal | ||
*/ | ||
interface ReactContextAsReactNode extends React.Context<React.ReactNode> {} | ||
declare module "." { | ||
@@ -145,2 +150,21 @@ interface ThenableImpl<T> { | ||
} | ||
/** | ||
* @internal Use `Awaited<ReactNode>` instead | ||
*/ | ||
// Helper type to enable `Awaited<ReactNode>`. | ||
// Must be a copy of the non-thenables of `ReactNode`. | ||
type AwaitedReactNode = | ||
| ReactElement | ||
| string | ||
| number | ||
| Iterable<AwaitedReactNode> | ||
| ReactPortal | ||
| boolean | ||
| null | ||
| undefined; | ||
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_REACT_NODES { | ||
contexts: ReactContextAsReactNode; | ||
promises: Promise<AwaitedReactNode>; | ||
} | ||
} |
@@ -45,20 +45,2 @@ /** | ||
declare module "." { | ||
/** | ||
* @internal Use `Awaited<ReactNode>` instead | ||
*/ | ||
// Helper type to enable `Awaited<ReactNode>`. | ||
// Must be a copy of the non-thenables of `ReactNode`. | ||
type AwaitedReactNode = | ||
| ReactElement | ||
| string | ||
| number | ||
| Iterable<AwaitedReactNode> | ||
| ReactPortal | ||
| boolean | ||
| null | ||
| undefined; | ||
interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_REACT_NODES { | ||
promises: Promise<AwaitedReactNode>; | ||
} | ||
export interface SuspenseProps { | ||
@@ -65,0 +47,0 @@ /** |
432854
9345