jimpex
    Preparing search index...

    Type Alias HTMLPostMessageResponseOptions

    The options to build a response for a post message.

    type HTMLPostMessageResponseOptions = {
        close?: boolean;
        closeDelay?: number;
        message: string;
        res: Response;
        status?: number | string;
        target?: string;
        title: string;
    }
    Index

    Properties

    close?: boolean

    Whether or not to call window.close after sending the message.

    true
    
    closeDelay?: number

    In case close is set to true, this option is to specify how many milliseconds should be waited before closing the window.

    700
    
    message: string

    The contents of the post message.

    res: Response

    The response object generated by the application.

    status?: number | string

    The status code for the response.

    200
    
    target?: string

    From which object will the postMessage method called from.

    'window.opener'
    
    title: string

    The title for the HTML.