Reading Local JSON present in an Angular 4/5 or Ionic 2/3 project
Kushal Grover
4708

I’m getting a typescript error when I try the last solution.

Code: console.log(regularExpressions.positiveInteger);

Error: (TS) Property ‘positiveInteger’ does not exist on type ‘typeof”*.json”’.

The variable positiveInteger exists in my JSON file.

It works and logs the correct value, but in VS it looks like I have an error. Is there any way to fix this?