File tree 1 file changed +10
-3
lines changed
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,13 @@ declare module 'react-server-dom-webpack/server.edge' {
114
114
[ id : string ] : ImportManifestEntry
115
115
}
116
116
117
+ export type ReactFormState = [
118
+ unknown /* actual state value */ ,
119
+ string /* key path */ ,
120
+ string /* Server Reference ID */ ,
121
+ number /* number of bound arguments */ ,
122
+ ]
123
+
117
124
export type TemporaryReferenceSet = WeakMap < any , string >
118
125
119
126
export function renderToReadableStream (
@@ -151,11 +158,11 @@ declare module 'react-server-dom-webpack/server.edge' {
151
158
body : FormData ,
152
159
serverManifest : ServerManifest
153
160
) : Promise < ( ) => T > | null
154
- export function decodeFormState < S > (
155
- actionResult : S ,
161
+ export function decodeFormState (
162
+ actionResult : unknown ,
156
163
body : FormData ,
157
164
serverManifest : ServerManifest
158
- ) : Promise < unknown | null >
165
+ ) : Promise < ReactFormState | null >
159
166
160
167
export function registerServerReference < T > (
161
168
reference : T ,
You can’t perform that action at this time.
0 commit comments