Skip to content

Commit

Permalink
Revert routeModules
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-sherman committed Dec 9, 2022
1 parent fd416d8 commit 21e8dbc
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions packages/remix-server-runtime/routeModules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,24 +30,6 @@ export interface ActionFunction {
| AppData;
}

/**
* Route loader function signature.
*
* This is intended to be used with TypeScript's `satisfies` keyword.
*
* @example
*
* ```ts
* export const loader = (({ request }) => {
* const url = new URL(request.url);
* return new Response("hello from " + url.pathname);
* }) satisfies LoaderFunction;
* ```
*/
export interface LoaderFunction {
(args: DataFunctionArgs): Promise<Response> | Response;
}

/**
* A React component that is rendered when the server throws a Response.
*/
Expand Down

0 comments on commit 21e8dbc

Please sign in to comment.