-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdata.d.ts
More file actions
22 lines (22 loc) · 800 Bytes
/
data.d.ts
File metadata and controls
22 lines (22 loc) · 800 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import type { RouteMatch } from "./routeMatching";
import type { ServerRoute } from "./routes";
/**
* An object of arbitrary for route loaders and actions provided by the
* server's `getLoadContext()` function.
*/
export declare type AppLoadContext = any;
/**
* Data for a route that was returned from a `loader()`.
*/
export declare type AppData = any;
export declare function callRouteAction({ loadContext, match, request, }: {
loadContext: unknown;
match: RouteMatch<ServerRoute>;
request: Request;
}): Promise<Response>;
export declare function callRouteLoader({ loadContext, match, request, }: {
request: Request;
match: RouteMatch<ServerRoute>;
loadContext: unknown;
}): Promise<Response>;
export declare function extractData(response: Response): Promise<unknown>;