stephane-monnot / react-vertical-timeline

Vertical timeline for React.js
https://stephane-monnot.github.io/react-vertical-timeline/
MIT License
1.06k stars 158 forks source link

TS - lineColor missed on interface #133

Open pvb89 opened 2 years ago

pvb89 commented 2 years ago

export interface VerticalTimelineProps { animate?: boolean | undefined; children?: React.ReactNode; className?: string | undefined; layout?: '1-column' | '2-columns' | undefined; }

The interface is missing the lineColor property, the function behind works fine.

Shiba-Kar commented 2 years ago

any work around need to set the lineColor property

x22tri commented 2 years ago

As far as I can tell, this commit to DefinitelyTyped fixed this issue. For me, lineColor works both as lineColor='red' and lineColor={'red'}.

141 might be a duplicate, but it was posted in March (about a month after the interface update in DefinitelyTyped) so I'm not sure if the problem persists despite the interface update.