0

Creating an Ionic app from some tutorial and can not figure out what is wrong here. I got 2 messages about the code:

let a = item.payload.toJSON();
        a['$key'] = item.key;
        this.Bookings.push(a as Inventory);

The messages are:

*- 'a' is possibly 'null'.

  • Argument of type 'Inventory' is not assignable to parameter of type 'never'.*

I tried to disable messages in the tsconfig.json file, messages are gone but it still is not working so somehow i have to solve this.

Renzo
  • 31
  • 1
  • It do answer a little indeed. Only lots of suggestions on your link. I will try some tomorrow, thanks. – Renzo Dec 22 '22 at 22:01

0 Answers0