title: What is the scope of .d.ts files
body: <p>So I am using react-table in a Typescript Next.js projects. This package consists of modules (like sorting, pagination, etc...) that aren't included by default but must be enabled in the main <code>useTable</code> hook. By default the types are set up in a way that doesn't include properties related to the modules.</p>
  <p>I am following the following instructions: <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-table" rel="nofollow noreferrer">https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-table</a></p>
  <p>Where it says to create a <code>react-table-config.d.ts</code> file and place it somewhere in my source directory and then modify it to only include the modules I need.</p>
  <p>However while I might need some modules in one component, I might not need it in another. So I was wondering whether such files have a global scope or if it is possible to have two such files for two seperate components.</p>
  <p>So for example if I have the following directory structure:</p>
  <pre><code>src
  |
  |-- components
  |   |
  |   |-- sorted-table
  |   |   |
  |   |   |-- index.tsx
  |   |   |
  |   |   |-- react-table-config.d.ts
  |   |
  |   |-- paginated-table
  |   |   |
  |   |   |-- index.tsx
  .   .   |
  .   .   |-- react-table-config.d.ts
  .   .
  ``` 
  </code></pre>