Stone.js API
    Preparing search index...

    Interface IErrorPage<IncomingEventType, OutgoingResponseType>

    Represents an error page.

    interface IErrorPage<
        IncomingEventType extends ReactIncomingEvent,
        OutgoingResponseType = unknown,
    > {
        handle?: FunctionalErrorHandler<IncomingEventType, OutgoingResponseType>;
        head?: (
            context: ErrorPageHeadContext<any, any>,
        ) => Promiseable<HeadContext>;
        render: (context: ErrorPageRenderContext<any, any>) => ReactNode;
    }

    Type Parameters

    • IncomingEventType extends ReactIncomingEvent

      The type representing the incoming event.

    • OutgoingResponseType = unknown

      The type representing the outgoing response.

    Index
    handle?: FunctionalErrorHandler<IncomingEventType, OutgoingResponseType>
    head?: (context: ErrorPageHeadContext<any, any>) => Promiseable<HeadContext>
    render: (context: ErrorPageRenderContext<any, any>) => ReactNode