Open GlennSouthern opened 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.
When we want to display a type that is not a prop type we do a hack like this.
It would be nice to be able to get the type directly from a file without using it in this way.