Skip to content

Commit

Permalink
Use non-conflicting naming
Browse files Browse the repository at this point in the history
  • Loading branch information
knpwrs committed Jun 29, 2023
1 parent 09ac7e1 commit c71c4e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/astro/src/@types/astro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1772,8 +1772,8 @@ export interface EndpointOutput {
encoding?: BufferEncoding;
}

export type APIRoute<Props extends Record<string, any> = Record<string, any>> = (
context: APIContext<Props>
export type APIRoute<RouteProps extends Props = Props> = (
context: APIContext<RouteProps>
) => EndpointOutput | Response | Promise<EndpointOutput | Response>;

export interface EndpointHandler {
Expand Down

0 comments on commit c71c4e6

Please sign in to comment.