title: Typescript declaration for .js file in mixed project
body: <p>Hi so I'm converting my js react redux project to typescript. and I wanted to start with my redux reducers file. </p>
  
  <p>So this is what my project currently looks like</p>
  
  <pre><code>Project/
    ...
    reducers/
       index.ts
    actions/
       index.js
    types/
       actions/
         index.d.ts
    ...
    tsconfig.js
  </code></pre>
  
  <p>File contents - </p>
  
  <p>reducers/index.ts</p>
  
  <pre><code>import { Actions } from "../actions";
  </code></pre>
  
  <p>^ with that code i get - </p>
  
  <pre><code>[ts] Could not find a declaration file for module '../actions'
  </code></pre>
  
  <p>and in my 
  types/
           actions/
             index.d.ts
  I have - </p>
  
  <pre><code>declare module "actions";
  </code></pre>
  
  <p>in my tsconfig.js i have - </p>
  
  <pre><code>{
    "compilerOptions": {
    "target": "esnext",
    "module": "commonjs",
    "jsx": "react",
  
    "strict": true,
  
    "typeRoots": ["./types", "./node_modules/@types"],
    "allowSyntheticDefaultImports": true,
    "esModuleInterop": true
   },
   "exclude": ["node_modules", "typings"]
  }
  </code></pre>
  
  <p>So not sure how i can fix - </p>
  
  <pre><code> [ts] Could not find a declaration file for module '../actions'
  </code></pre>