jimpex
    Preparing search index...

    Type Alias JSONResponseOptions

    The options to build a response for JSON.

    type JSONResponseOptions = {
        data: unknown;
        metadata?: object;
        res: Response;
        status?: number | string;
    }
    Index

    Properties

    data: unknown

    The actual data for the response. It will be added in a data property.

    metadata?: object

    Extra information to include inside the metadata object.

    res: Response

    The response object generated by the application.

    status?: number | string

    The status code for the response.

    200