How to use a JSON file in TypeScript?
I have a file called men.json
. I want to do the equivalent of var men = require('./men.json');
Whatever I have tried, it is looking for a ./men.json.js
file. I read that I can not use import
since it is not a .ts
file
What is the equivalent of the require
line?