Skip to content

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

Open
@GlennSouthern

Description

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.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions