title: Module has no exported member Vue Ts
body: <p>I'm trying to import my own types inside my component, and something weird it's happening. So if I do :</p>
  <p><strong>Types</strong></p>
  <pre><code>export type Size = 'foo' |'foo' | 'foo' | 'foo';
  export type Type = 'foo' | 'foo' | 'foo' | 'foo';
  export type State = 'foo'
  </code></pre>
  <p><strong>Component</strong></p>
  <pre><code>    import { Size, State, Type } from '@/typings/button-type';
      
      props: {
              size: {
                  default: 'foo',
                  type: String as PropType&lt;Size&gt;
              },
              state: {
                  default: 'foo',
                  type: String as PropType&lt;State&gt;
              },
              type: {
                  default: 'foo',
                  type: String as PropType&lt;Type&gt;
              }
          },
  </code></pre>
  <p>This works just fine.
  But now that I wanted to add the type Color, or just put all the types inside a button type that I want to create and use them; I'm getting an error. I don't know why it works with those 3 types and not the others.</p>
  <p><em><strong>Types Failed</strong></em></p>
  <pre><code>    export type MyOwnType = {
          color: Color;
          size: Size;
          type: Type;
          state: State;
      }
  
  type Color = 'foo' | 'foo';
  type Size = 'foo' |'foo' | 'foo' | 'foo';
  type Type = 'foo' | 'foo' | 'foo' | 'foo';
  type State = 'foo'
  </code></pre>
  <pre><code>
  export type Color = 'foo' | 'foo';
  export type Size = 'foo' |'foo' | 'foo' | 'foo';
  export type Type = 'foo' | 'foo' | 'foo' | 'foo';
  export type State = 'foo'
  
  </code></pre>
  <p>And the I try to do:</p>
  <pre><code>            color: {
                  default: 'foo',
                  type: String as PropType&lt;Color&gt;
              }
  </code></pre>
  <p>or the same with the Object like PropType&lt;MyOwnType['size']&gt; I get the same error</p>
  <p><em><strong>Error</strong></em></p>
  <pre><code>
  src/components/Btn/Btn.vue:11:14
  TS2305: Module '&quot;../../typings/button-type&quot;' has no exported member 'Color'.
       9 |     import { defineComponent, computed, PropType } from '@vue/runtime-core';
      10 |     import { useI18n } from 'vue-i18n';
    &gt; 11 |     import { Color, Size, State, Type } from '@/typings/button-type';
         |              ^^^^^
  
  </code></pre>
  <p>Either Color, or MyOwnType or Foo... has no exported member.</p>
  <p>Any idea?</p>