I am a newbie in typescript/node. I have a typescript file "order.ts" from which I would like to import an external config dependency from "config.ts"

My config file code is as below

```
let config = {
    mongoAddress: "mongodb://localhost:27017/dts",
    dataDirectory: "../../data/"
};

module.exports = config;

```

I am importing the config file in the order file as below

```
import { config  } from "../../config";

```

However I am getting the TS compiler throwing error "... file not a module". Any clues how I should I be importing my external dependency in typescript

[![enter image description here](https://i.stack.imgur.com/Q0wXv.jpg)](https://i.stack.imgur.com/Q0wXv.jpg)