What's the h\*ll? Why err is error for typescipt? There is such problem:

> 
> ESLint: Unsafe member access .response on an any
> value.(@typescript-eslint/no-unsafe-member-access)
> 
> 
> 

[![enter image description here](https://i.stack.imgur.com/zA18q.png)](https://i.stack.imgur.com/zA18q.png)

**here is main part of problem code:**

```
 } catch (err) {
         // Here is problem
          if (!err.response) {
            throw err;
          }
          return rejectWithValue(err);
        }

```

**Here is full code:**

```
export const actionFetchDataUser = createAsyncThunk(
  'data/user',
  async (formVal: TformVal, { rejectWithValue }) => {
    try {
      const GoogleAuth = window.gapi.auth2.getAuthInstance();
      const profileMail = await GoogleAuth.signIn({
        scope: 'profile email',
      });
      const googleEmail = profileMail.getBasicProfile().getEmail();
      if (googleEmail !== formVal.email) {
        throw Error('There is NO email');
      }
      return {
        name: profileMail.getBasicProfile().getName(),
        ava: profileMail.getBasicProfile().getImageUrl(),
      };
    } catch (err) {
     // Here is problem
      if (!err.response) {
        throw err;
      }
      return rejectWithValue(err);
    }
  },
);

```