@types/react-dom
Advanced tools
Comparing version 18.2.1 to 18.2.2
@@ -35,2 +35,20 @@ /** | ||
declare module '.' {} | ||
declare module '.' { | ||
interface FormStatusNotPending { | ||
pending: false; | ||
data: null; | ||
method: null; | ||
action: null; | ||
} | ||
interface FormStatusPending { | ||
pending: true; | ||
data: FormData; | ||
method: string; | ||
action: string | ((formData: FormData) => void | Promise<void>); | ||
} | ||
type FormStatus = FormStatusPending | FormStatusNotPending; | ||
function experimental_useFormStatus(): FormStatus; | ||
} |
{ | ||
"name": "@types/react-dom", | ||
"version": "18.2.1", | ||
"version": "18.2.2", | ||
"description": "TypeScript definitions for React (react-dom)", | ||
@@ -52,3 +52,3 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-dom", | ||
}, | ||
"typesPublisherContentHash": "3148dc3669fc526e321519b964d3b22531341b2e804caeba130bd6f193866850", | ||
"typesPublisherContentHash": "f42e45fd4c901c41267027e4de1281542c2d1458806a2d0a3e6142fd996ef8ee", | ||
"typeScriptVersion": "4.3", | ||
@@ -55,0 +55,0 @@ "exports": { |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Tue, 25 Apr 2023 20:32:50 GMT | ||
* Last updated: Wed, 03 May 2023 16:02:46 GMT | ||
* Dependencies: [@types/react](https://npmjs.com/package/@types/react) | ||
@@ -14,0 +14,0 @@ * Global values: `ReactDOM`, `ReactDOMServer` |
30155
637