Good day. I\'m new to Type Script, using VSCode.
Getting following errors:
error TS2322: Type \'() => string\' is not assignable to type
In my case, it was that I had a custom interface called Item, but I imported accidentally because of the auto-completion, the angular Item class. Be sure that you're importing from the right package.