Typescript version 2.2.2
I wrote this require in my UserRoutzr.ts
const users = require(path.join(process.cwd() + \"/data\"));
may be you need dynamic module loading, and the code like this:
import {IUser} from './lib/user'; const users:IUser[] = require(path.join(process.cwd() + "/data"));