From ff9783e984244be357aea5e5e7e0bcf97452a699 Mon Sep 17 00:00:00 2001 From: Ken Powers Date: Fri, 30 Jun 2023 10:38:27 -0400 Subject: [PATCH] Revert "Use non-conflicting naming" This reverts commit c71c4e65658c9cc6711ab94a407008f29b8b49dd. --- 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 1860177b4446..4c54fd82ff32 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 = ( - context: APIContext +export type APIRoute = Record> = ( + context: APIContext ) => EndpointOutput | Response | Promise; export interface EndpointHandler {