I have this typescript code:
categoryColumnWide: number = 0;
this.categoryColumnWide = parseInt(storage.getItem('categoryColumnWide') || 1);
Giving me the following error:
Severity Code Description Project File Line Suppression State Error Build:Argument of type 'string | 1' is not assignable to parameter of type 'string'.
Can someone help me with this? I just upgraded to a new version of Typescript and this message is appearing now in multiple places. When I hover over categoryColumnWide it says it's a "number"
FYI As far as I know I am using Typescript 2.1