summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/astro/src/@types/astro.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/astro/src/@types/astro.ts b/packages/astro/src/@types/astro.ts
index 104c60598..70a11337b 100644
--- a/packages/astro/src/@types/astro.ts
+++ b/packages/astro/src/@types/astro.ts
@@ -2262,9 +2262,10 @@ type Routing = {
strategy: 'pathname';
};
-export type APIRoute<Props extends Record<string, any> = Record<string, any>, APIParams extends Record<string, string | undefined> = Record<string, string | undefined>> = (
- context: APIContext<Props, APIParams>
-) => Response | Promise<Response>;
+export type APIRoute<
+ Props extends Record<string, any> = Record<string, any>,
+ APIParams extends Record<string, string | undefined> = Record<string, string | undefined>,
+> = (context: APIContext<Props, APIParams>) => Response | Promise<Response>;
export interface EndpointHandler {
[method: string]: APIRoute;