Skip to content

Commit a7a1e5d

Browse files
committed
fixup! wip: cleanup cleanup cleanupppp
1 parent 3e0e117 commit a7a1e5d

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

packages/next/types/$$compiled.internal.d.ts

+10-3
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,13 @@ declare module 'react-server-dom-webpack/server.edge' {
114114
[id: string]: ImportManifestEntry
115115
}
116116

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+
117124
export type TemporaryReferenceSet = WeakMap<any, string>
118125

119126
export function renderToReadableStream(
@@ -151,11 +158,11 @@ declare module 'react-server-dom-webpack/server.edge' {
151158
body: FormData,
152159
serverManifest: ServerManifest
153160
): Promise<() => T> | null
154-
export function decodeFormState<S>(
155-
actionResult: S,
161+
export function decodeFormState(
162+
actionResult: unknown,
156163
body: FormData,
157164
serverManifest: ServerManifest
158-
): Promise<unknown | null>
165+
): Promise<ReactFormState | null>
159166

160167
export function registerServerReference<T>(
161168
reference: T,

0 commit comments

Comments
 (0)