title: Write definition for specific file
body: <p>I want to write definition for specific file, for example I have these files:</p>
  
  <p><a href="https://i.stack.imgur.com/rGM2u.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rGM2u.png" alt="Files"></a></p>
  
  <p>Where <code>style.less</code> is css module and I want write definition for this file to have autocomplete. All the definitions must be in <code>infa.d.ts</code>.</p>
  
  <p>In <code>some.ts</code> I have</p>
  
  <pre><code>import * as s from './style.less';
  </code></pre>
  
  <p>and definition in <code>infa.d.ts</code></p>
  
  <pre><code>declare module 'one/style.less' {
  
  }
  </code></pre>
  
  <p>TypeScript tells that it cannot find module but the declaration points to correct file.</p>
  
  <p>If I change in <code>some.ts</code> import to</p>
  
  <pre><code>import * as s from 'one/style.less';
  </code></pre>
  
  <p>Everything works, but imagine if the path will be longer or if I move the folder to another place and in this case I will have to change the path.</p>
  
  <p>Another option is that I can put the definition along with the less file</p>
  
  <p><a href="https://i.stack.imgur.com/a5Kpr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/a5Kpr.png" alt="Files"></a></p>
  
  <p>But this is not for me because there will be a lot of files.</p>