Interface IEnhanceServerContextExecutionContext<TContext>

Context for an EnhanceServerContext function.

interface IEnhanceServerContextExecutionContext<TContext> {
    context: TContext;
    options: Nullable<Partial<IWithServerPropsOptions>>;
    result: GetServerSidePropsResult<any>;
    shouldStop: boolean;
}

Type Parameters

Properties

context: TContext

The context to enhance.

options: Nullable<Partial<IWithServerPropsOptions>>

The options.

result: GetServerSidePropsResult<any>

The props result.

shouldStop: boolean

Gets or sets if the execution should be stopped or not.

Default

false

Generated using TypeDoc