one of my config module like this
export interface ConfigSetting {
// some code
}
export const config : ConfigSetting = require('./config.json')
tsc compiles well.
when i use ts-node, it has some error like
let db = new Sequelize(config.database)
^
TypeError: Cannot read property 'database' of undefined