Skip to content

Commit

Permalink
Make createRenderContext args stricter
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy committed Jul 5, 2023
1 parent 9d3ece8 commit d237a33
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/astro/src/core/render/context.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type {
AstroCookies,
ComponentInstance,
Params,
Props,
Expand All @@ -25,13 +24,14 @@ export interface RenderContext {
componentMetadata?: SSRResult['componentMetadata'];
route?: RouteData;
status?: number;
cookies?: AstroCookies;
params: Params;
props: Props;
locals?: object;
}

export type CreateRenderContextArgs = Partial<RenderContext> & {
export type CreateRenderContextArgs = Partial<
Omit<RenderContext, 'params' | 'props' | 'locals'>
> & {
request: RenderContext['request'];
mod: ComponentInstance;
env: Environment;
Expand Down

0 comments on commit d237a33

Please sign in to comment.