@@ -11,8 +11,8 @@ import {
1111import type {
1212 ClientTemporaryReferenceSet ,
1313 CreateFromReadableStreamEdgeOptions ,
14- DecodeReplyOptions ,
15- EncodeReplyOptions ,
14+ DecodeReplyFunction ,
15+ EncodeReplyFunction ,
1616 RenderToReadableStreamOptions ,
1717 ServerTemporaryReferenceSet ,
1818} from '../types'
@@ -67,12 +67,8 @@ export const registerServerReference: <T>(
6767 name : string ,
6868) => T = ReactServer . registerServerReference
6969
70- export function decodeReply (
71- body : string | FormData ,
72- options ?: DecodeReplyOptions ,
73- ) : Promise < unknown > {
74- return ReactServer . decodeReply ( body , createServerManifest ( ) , options )
75- }
70+ export const decodeReply : DecodeReplyFunction = ( body , options ) =>
71+ ReactServer . decodeReply ( body , createServerManifest ( ) , options )
7672
7773export function decodeAction ( body : FormData ) : Promise < ( ) => Promise < void > > {
7874 return ReactServer . decodeAction ( body , createServerManifest ( ) )
@@ -88,10 +84,7 @@ export function decodeFormState(
8884export const createTemporaryReferenceSet : ( ) => ServerTemporaryReferenceSet =
8985 ReactServer . createTemporaryReferenceSet
9086
91- export const encodeReply : (
92- v : unknown ,
93- options ?: EncodeReplyOptions ,
94- ) => Promise < string | FormData > = ReactClient . encodeReply
87+ export const encodeReply : EncodeReplyFunction = ReactClient . encodeReply
9588
9689export const createClientTemporaryReferenceSet : ( ) => ClientTemporaryReferenceSet =
9790 ReactClient . createTemporaryReferenceSet
0 commit comments