Why has the TypeScript API changed after compiling to JavaScript? : I consider that `const greet = require('./greet');` is equivelant to `import greet from './greet';`.

So these two files should work together:

1. `greet.ts`:
```
export default ({ name, age }) => `Name: ${name}, Age: ${age}`;
```

2. `test.js`:
```
const greet = require("./greet");
greet({ name: 'Smith', age: 21 });
```

But after compiling, `greet.ts` turns out to be:

    "use strict";
    exports.__esModule = true;
    exports["default"] = (function (_a) {
        var name = _a.name, age = _a.age;
        return "Name: " + name + ", Age: " + age;
    });


instead of:

    module.exports = (function (_a) {
        var name = _a.name, age = _a.age;
        return "Name: " + name + ", Age: " + age;
    });


Why is this?