extract-react-types icon indicating copy to clipboard operation
extract-react-types copied to clipboard

Feat: Add a way to display types that are not props

Open GlennSouthern opened this issue 4 years ago • 0 comments

When we want to display a type that is not a prop type we do a hack like this.

import { AttributesType } from '../src/types';

export default function Attributes(props: AttributesType) {
  return null;
}

It would be nice to be able to get the type directly from a file without using it in this way.

GlennSouthern avatar Mar 12 '21 04:03 GlennSouthern