Skip to content

Commit

Permalink
changeup
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewp committed Nov 20, 2024
1 parent 320ec54 commit 5c4e03a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/astro/src/core/server-islands/endpoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ export function createEndpoint(manifest: SSRManifest) {
// This allows the island to set headers (cookies).
if(isAstroComponentFactory(Component)) {
const ServerIsland = Component;
Component = function(this: typeof ServerIsland) {
return ServerIsland.apply(this, arguments as any);
Component = function(this: typeof ServerIsland, ...args: Parameters<typeof ServerIsland>) {
return ServerIsland.apply(this, args);
};
Object.assign(Component, ServerIsland);
Component.propagation = 'self';
Expand Down

0 comments on commit 5c4e03a

Please sign in to comment.