title: How using types.d.ts file in React & TypeScript project
body: <p>i have React &amp; TypeScript project. 
  Here is i have folder structure in some component like: </p>
  
  <pre><code> - ComponentFolder
    - index.tsx
    - types.d.ts
    - ChildComponent
      - index.tsx
  </code></pre>
  
  <p>I know that if i will put my types in <strong>types.d.ts</strong> file which in root of my component directory, I can use these types in childComponents in this directory. </p>
  
  <p>So i tried;</p>
  
  <p>my <strong>types.d.ts</strong> file: </p>
  
  <pre><code>export type CommonProps = {
    openItem: string;
    getValue: (e: React.MouseEvent) =&gt; void;
  };
  </code></pre>
  
  <p>and in child component: </p>
  
  <pre><code>import * as React from "react";
  
  const ChildComponent: React.FC&lt;CommonProps&gt; = (props) =&gt; {
    return (
      &lt;div&gt;
        {props.openItem}
      &lt;/div&gt;
    );
  };
  
  export default ChildComponent;
  </code></pre>
  
  <p>But getting error:</p>
  
  <pre><code>cannot find CommonProps error.
  </code></pre>
  
  <p>How i know if i have some file d.ts in the directory i can use these types in this directory without import. </p>
  
  <p>where i mistaken? </p>