From c71c4e65658c9cc6711ab94a407008f29b8b49dd Mon Sep 17 00:00:00 2001 From: Ken Powers Date: Thu, 29 Jun 2023 10:35:07 -0400 Subject: [PATCH] Use non-conflicting naming --- packages/astro/src/@types/astro.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/astro/src/@types/astro.ts b/packages/astro/src/@types/astro.ts index 4c54fd82ff32..1860177b4446 100644 --- a/packages/astro/src/@types/astro.ts +++ b/packages/astro/src/@types/astro.ts @@ -1772,8 +1772,8 @@ export interface EndpointOutput { encoding?: BufferEncoding; } -export type APIRoute = Record> = ( - context: APIContext +export type APIRoute = ( + context: APIContext ) => EndpointOutput | Response | Promise; export interface EndpointHandler {