title: module.exports in typescript file return 'module is not a module.'
body: <p>The following module written in JS file:</p>
  
  <pre><code>module.exports = {
    propA: 1,
    propB: 2
  }
  </code></pre>
  
  <p>Allows later to import the property from the module like:
  <code>import { propA } from 'path/to/module'</code></p>
  
  <p>However changing the format of the file to typescript like <code>module.ts</code> results in the following issue linter issue 'module is not a module.'</p>
  
  <p>Here is the tsconfig for the project</p>
  
  <pre><code>{
    "compilerOptions": {
      "target": "esnext",
      "module": "esnext",
      "strict": true,
      "jsx": "preserve",
      "importHelpers": true,
      "moduleResolution": "node",
      "experimentalDecorators": true,
      "esModuleInterop": true,
      "allowSyntheticDefaultImports": true,
      "allowJs": true,
      "sourceMap": true,
      "noImplicitThis": true,
      "baseUrl": ".",
      "types": [
        "webpack-env",
        "jest"
      ],
      "paths": {
        "@/*": [
          "src/*"
        ]
      },
      "lib": [
        "esnext",
        "dom",
        "dom.iterable",
        "scripthost"
      ]
    },
    "include": [
      "src/**/*.ts",
      "src/**/*.tsx",
      "src/**/*.vue",
      "tests/**/*.ts",
      "tests/**/*.tsx"
    ],
    "exclude": [
      "node_modules"
    ]
  }
  </code></pre>
  
  <p>I will appreciate if somebody can suggest a valid way to preserve module.exports or in typescript :)</p>
  
  <p>...or at least a possibility to declare the module that exports object in the way that later is allowed to import only it's single property</p>