@@ -32,7 +32,7 @@ export type SingleFetchRedirectResult = {
32
32
} ;
33
33
34
34
// Shared/serializable type used by both turbo-stream and RSC implementations
35
- type AgnosticSingleFetchResults =
35
+ type DecodedSingleFetchResults =
36
36
| { routes : { [ key : string ] : SingleFetchResult } }
37
37
| { redirect : SingleFetchRedirectResult } ;
38
38
@@ -333,7 +333,7 @@ async function singleFetchLoaderNavigationStrategy(
333
333
let routeDfds = matches . map ( ( ) => createDeferred < void > ( ) ) ;
334
334
335
335
// Deferred we'll use for the singleular call to the server
336
- let singleFetchDfd = createDeferred < AgnosticSingleFetchResults > ( ) ;
336
+ let singleFetchDfd = createDeferred < DecodedSingleFetchResults > ( ) ;
337
337
338
338
// Base URL and RequestInit for calls to the server
339
339
let url = stripIndexParam ( singleFetchUrl ( request . url , basename ) ) ;
@@ -534,7 +534,7 @@ async function fetchAndDecode(
534
534
url : URL ,
535
535
init : RequestInit ,
536
536
routeId ?: string
537
- ) : Promise < { status : number ; data : AgnosticSingleFetchResults } > {
537
+ ) : Promise < { status : number ; data : DecodedSingleFetchResults } > {
538
538
let res = await fetch ( url , init ) ;
539
539
540
540
// If this 404'd without hitting the running server (most likely in a
@@ -563,7 +563,7 @@ async function fetchAndDecode(
563
563
564
564
try {
565
565
let decoded = await decodeViaTurboStream ( res . body , window ) ;
566
- let data : AgnosticSingleFetchResults ;
566
+ let data : DecodedSingleFetchResults ;
567
567
if ( ! init . method || init . method === "GET" ) {
568
568
let typed = decoded . value as SingleFetchResults ;
569
569
if ( SingleFetchRedirectSymbol in typed ) {
@@ -648,7 +648,7 @@ export function decodeViaTurboStream(
648
648
}
649
649
650
650
function unwrapSingleFetchResult (
651
- result : AgnosticSingleFetchResults ,
651
+ result : DecodedSingleFetchResults ,
652
652
routeId : string
653
653
) {
654
654
if ( "redirect" in result ) {
0 commit comments