@@ -20,7 +20,7 @@ const StyledTimeline = forwardRef<HTMLDivElement, TimelineProps>(function Timeli
2020 return < Box as = { PrimerTimeline } ref = { ref } { ...props } />
2121} )
2222
23- // @ts -ignore
23+ // @ts -ignore ignore `as` prop error
2424const TimelineImpl = ( { as, ...props } : TimelineProps ) => (
2525 // @ts -ignore forwardedAs is valid here but I don't know how to fix the typescript error
2626 < StyledTimeline forwardedAs = { as } { ...props } />
@@ -30,7 +30,7 @@ const StyledTimelineItem = forwardRef<HTMLDivElement, TimelineItemProps>(functio
3030 return < Box as = { PrimerTimeline . Item } ref = { ref } { ...props } />
3131} )
3232
33- // @ts -ignore
33+ // @ts -ignore ignore `as` prop error
3434const TimelineItem = ( { as, ...props } : TimelineItemProps ) => (
3535 // @ts -ignore forwardedAs is valid here but I don't know how to fix the typescript error
3636 < StyledTimelineItem forwardedAs = { as } { ...props } />
@@ -40,7 +40,7 @@ function StyledTimelineBadge(props: TimelineBadgeProps) {
4040 return < Box as = { PrimerTimeline . Badge } { ...props } />
4141}
4242
43- // @ts -ignore
43+ // @ts -ignore ignore `as` prop error
4444const TimelineBadge = ( { as, ...props } : TimelineBadgeProps ) => (
4545 // @ts -ignore forwardedAs is valid here but I don't know how to fix the typescript error
4646 < StyledTimelineBadge forwardedAs = { as } { ...props } />
@@ -50,7 +50,7 @@ const StyledTimelineBody = forwardRef<HTMLDivElement, TimelineBodyProps>(functio
5050 return < Box as = { PrimerTimeline . Body } ref = { ref } { ...props } />
5151} )
5252
53- // @ts -ignore
53+ // @ts -ignore ignore `as` prop error
5454const TimelineBody = ( { as, ...props } : TimelineBodyProps ) => (
5555 // @ts -ignore forwardedAs is valid here but I don't know how to fix the typescript error
5656 < StyledTimelineBody forwardedAs = { as } { ...props } />
@@ -60,7 +60,7 @@ const StyledTimelineBreak = forwardRef<HTMLDivElement, TimelineBreakProps>(funct
6060 return < Box as = { PrimerTimeline . Break } ref = { ref } { ...props } />
6161} )
6262
63- // @ts -ignore
63+ // @ts -ignore ignore `as` prop error
6464const TimelineBreak = ( { as, ...props } : TimelineBreakProps ) => (
6565 // @ts -ignore forwardedAs is valid here but I don't know how to fix the typescript error
6666 < StyledTimelineBreak forwardedAs = { as } { ...props } />
0 commit comments