Skip to content

Chart docs: annotate types #2139

Closed
Closed
@dlabrecq

Description

@dlabrecq

The react-charts docs contain some complex object types. For example, the ChartArea component shows AnimatePropTypeInterface as the animate type below.

The Victory docs show the animate type as type: boolean || object.
See https://formidable.com/open-source/victory/docs/victory-area/#animate

Note: There are far more complex examples, but using animate for simplicity.

Screen Shot 2019-06-03 at 2 38 52 PM

I don't want to override the existing Victory property types, just to add a description for react-docs. I would prefer to document properties using an annotation, if possible?

That may allow us to simplify the animate description / type as a boolean instead of AnimatePropTypeInterface. It would also isolate us from Victory changing the underlying property type and breaking our component wrappers.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions