I have a `ref`:

```js
const editItem = ref<object | null>(null)

```

Here's an example value for it:

```js
{
   id: 1,
   title: 'Harry Potter',
   author: 'J.K. Rowling',
   created: '30-08-2000',
}

```

If I run `console.log(editItem.value)`, I see this object:

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

But when I try to read the value's `author` with `console.log(editItem.value.author)`, then I see this error:

> 
> 
> ```
> Object is possibly 'null'.
> 
> ```
> 
>