Skip to main content

# waitMessageAction

    const waitMessageAction: {
      close: () => {
         payload: null;
         type: string;
      };
      open: (message: string, delay: boolean) => {
         payload: {
            delay: boolean;
            message: string;
         };
         type: string;
      };
    };

## Type Declaration​

### close()​

    close: () => {
      payload: null;
      type: string;
    };

#### Returns​

    {
      payload: null;
      type: string;
    }

##### payload​

    payload: null;

##### type​

    type: string;

### open()​

    open: (message: string, delay: boolean) => {
      payload: {
         delay: boolean;
         message: string;
      };
      type: string;
    };

#### Parameters​

##### message​

`string` = `'loading...'`

##### delay​

`boolean` = `true`

#### Returns​

    {
      payload: {
         delay: boolean;
         message: string;
      };
      type: string;
    }

##### payload​

    payload: {
      delay: boolean;
      message: string;
    };

###### payload.delay​

    delay: boolean;

###### payload.message​

    message: string;

##### type​

    type: string;