typehole icon indicating copy to clipboard operation
typehole copied to clipboard

2 typeholes in the same file can cause duplicate interface names

Open rikukissa opened this issue 3 years ago • 0 comments

Not a huge issue in this example as the interfaces are identical and the second one is merged with the first.

interface Bar {
  number: number;
  title: string;
  duration: number;
  audio_file: IAudioFile;
  published_at: string;
  long_description: string;
}
interface IAudioFile {
  url: string;
}

interface AutoDiscovered {
  number: number;
  title: string;
  duration: number;
  audio_file: IAudioFile;
  published_at: string;
  long_description: string;
}
interface IAudioFile {
  url: string;
}

export default function Episode(episode: Episode) {
  const foo: Bar = typehole.t1(episode);
  const bar: AutoDiscovered = typehole.t2(episode);
  

rikukissa avatar May 08 '21 12:05 rikukissa