File tree Expand file tree Collapse file tree
packages/remix-server-runtime Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import type {
1111import type { AppData , AppLoadContext } from "./data" ;
1212import type { LinkDescriptor } from "./links" ;
1313import type { SerializeFrom } from "./serialize" ;
14+ import type { ResponseStub } from "./single-fetch" ;
1415
1516export interface RouteModules < RouteModule > {
1617 [ routeId : string ] : RouteModule | undefined ;
@@ -40,6 +41,8 @@ export type ActionFunction = (
4041export type ActionFunctionArgs = RRActionFunctionArgs < AppLoadContext > & {
4142 // Context is always provided in Remix, and typed for module augmentation support.
4243 context : AppLoadContext ;
44+ // TODO: (v7) Make this non-optional once single-fetch is the default
45+ response ?: ResponseStub ;
4346} ;
4447
4548/**
@@ -71,6 +74,8 @@ export type LoaderFunction = (
7174export type LoaderFunctionArgs = RRLoaderFunctionArgs < AppLoadContext > & {
7275 // Context is always provided in Remix, and typed for module augmentation support.
7376 context : AppLoadContext ;
77+ // TODO: (v7) Make this non-optional once single-fetch is the default
78+ response ?: ResponseStub ;
7479} ;
7580
7681/**
You can’t perform that action at this time.
0 commit comments