atlassian / extract-react-types

One stop shop for documenting your react components.
https://atlassian.github.io/extract-react-types/
MIT License
179 stars 28 forks source link

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

Open GlennSouthern opened 3 years ago

GlennSouthern commented 3 years ago

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.