Skip to content

Commit

Permalink
Update virtual module types to include next()
Browse files Browse the repository at this point in the history
  • Loading branch information
delucis committed Jan 31, 2025
1 parent 15da794 commit 650e14c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/starlight/virtual-internal.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ declare module 'virtual:starlight/collection-config' {

declare module 'virtual:starlight/route-middleware' {
export const routeMiddleware: Array<
(context: import('astro').APIContext) => void | Promise<void>
(context: import('astro').APIContext, next: () => Promise<void>) => void | Promise<void>
>;
}

Expand Down

0 comments on commit 650e14c

Please sign in to comment.