Skip to content

Commit fa50d58

Browse files
committed
add ts-ingore comments
1 parent d8cc837 commit fa50d58

File tree

7 files changed

+17
-17
lines changed

7 files changed

+17
-17
lines changed

packages/styled-react/src/components/RadioGroup.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const StyledRadioGroup = (props: RadioGroupProps) => {
88
return <Box as={PrimerRadioGroup} {...props} />
99
}
1010

11-
// @ts-ignore
11+
// @ts-ignore ignore `as` prop error
1212
export const RadioGroupImpl = ({as, ...props}: RadioGroupProps) => (
1313
// @ts-ignore forwardedAs is valid here but I don't know how to fix the typescript error
1414
<StyledRadioGroup forwardedAs={as} {...props} />
@@ -25,7 +25,7 @@ const StyledCheckboxOrRadioGroupLabel = (props: CheckboxOrRadioGroupLabelProps)
2525
return <Box as={PrimerRadioGroup.Label} {...props} />
2626
}
2727

28-
// @ts-ignore
28+
// @ts-ignore ignore `as` prop error
2929
export const CheckboxOrRadioGroupLabel = ({as, ...props}: CheckboxOrRadioGroupLabelProps) => (
3030
// @ts-ignore forwardedAs is valid here but I don't know how to fix the typescript error
3131
<StyledCheckboxOrRadioGroupLabel forwardedAs={as} {...props} />
@@ -40,7 +40,7 @@ const StyledCheckboxOrRadioGroupCaption = (props: CheckboxOrRadioGroupCaptionPro
4040
return <Box as={PrimerRadioGroup.Caption} {...props} />
4141
}
4242

43-
// @ts-ignore
43+
// @ts-ignore ignore `as` prop error
4444
export const CheckboxOrRadioGroupCaption = ({as, ...props}: CheckboxOrRadioGroupCaptionProps) => (
4545
// @ts-ignore forwardedAs is valid here but I don't know how to fix the typescript error
4646
<StyledCheckboxOrRadioGroupCaption forwardedAs={as} {...props} />
@@ -56,7 +56,7 @@ const StyledCheckboxOrRadioGroupValidation = (props: CheckboxOrRadioGroupValidat
5656
return <Box as={PrimerRadioGroup.Validation} {...props} />
5757
}
5858

59-
// @ts-ignore
59+
// @ts-ignore ignore `as` prop error
6060
export const CheckboxOrRadioGroupValidation = ({as, ...props}: CheckboxOrRadioGroupValidationProps) => (
6161
// @ts-ignore forwardedAs is valid here but I don't know how to fix the typescript error
6262
<StyledCheckboxOrRadioGroupValidation forwardedAs={as} {...props} />

packages/styled-react/src/components/RelativeTime.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function StyledRelativeTime(props: RelativeTimeProps) {
99
return <Box as={PrimerRelativeTime} {...props} />
1010
}
1111

12-
// @ts-ignore
12+
// @ts-ignore ignore `as` prop error
1313
export const RelativeTime = ({as, ...props}: RelativeTimeProps) => (
1414
// @ts-ignore forwardedAs is valid here but I don't know how to fix the typescript error
1515
<StyledRelativeTime forwardedAs={as} {...props} />

packages/styled-react/src/components/SegmentedControl.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const StyledSegmentedControlButton = (props: SegmentedControlButtonProps) => {
1616
return <Box as={PrimerSegmentedControl.Button} {...props} />
1717
}
1818

19-
// @ts-ignore
19+
// @ts-ignore ignore `as` prop error
2020
const SegmentedControlButton = ({as, ...props}: SegmentedControlButtonProps) => (
2121
// @ts-ignore forwardedAs is valid here but I don't know how to fix the typescript error
2222
<StyledSegmentedControlButton forwardedAs={as} {...props} />
@@ -26,7 +26,7 @@ const StyledSegmentedControlIconButton = (props: SegmentedControlIconButtonProps
2626
return <Box as={PrimerSegmentedControl.IconButton} {...props} />
2727
}
2828

29-
// @ts-ignore
29+
// @ts-ignore ignore `as` prop error
3030
const SegmentedControlIconButton = ({as, ...props}: SegmentedControlIconButtonProps) => (
3131
// @ts-ignore forwardedAs is valid here but I don't know how to fix the typescript error
3232
<StyledSegmentedControlIconButton forwardedAs={as} {...props} />
@@ -36,7 +36,7 @@ const StyledSegmentedControl = (props: SegmentedControlProps) => {
3636
return <Box as={PrimerSegmentedControl} {...props} />
3737
}
3838

39-
// @ts-ignore
39+
// @ts-ignore ignore `as` prop error
4040
const SegmentedControlImpl = ({as, ...props}: SegmentedControlProps) => (
4141
// @ts-ignore forwardedAs is valid here but I don't know how to fix the typescript error
4242
<StyledSegmentedControl forwardedAs={as} {...props} />

packages/styled-react/src/components/Spinner.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export function StyledSpinner(props: SpinnerProps) {
88
return <Box as={PrimerSpinner} {...props} />
99
}
1010

11-
// @ts-ignore
11+
// @ts-ignore ignore `as` prop error
1212
export const Spinner = ({as, ...props}: SpinnerProps) => (
1313
// @ts-ignore forwardedAs is valid here but I don't know how to fix the typescript error
1414
<StyledSpinner forwardedAs={as} {...props} />

packages/styled-react/src/components/StateLabel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const StyledStateLabel = forwardRef<HTMLSpanElement, StateLabelProps>(function S
99
return <Box as={PrimerStateLabel} ref={ref} {...props} />
1010
})
1111

12-
// @ts-ignore
12+
// @ts-ignore ignore `as` prop error
1313
const StateLabel = ({as, ...props}: StateLabelProps) => (
1414
// @ts-ignore forwardedAs is valid here but I don't know how to fix the typescript error
1515
<StyledStateLabel forwardedAs={as} {...props} />

packages/styled-react/src/components/SubNav.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const StyledSubNav = forwardRef<HTMLElement, SubNavProps>(function SubNav(props,
1313
return <Box as={PrimerSubNav} ref={ref} {...props} />
1414
})
1515

16-
// @ts-ignore
16+
// @ts-ignore ignore `as` prop error
1717
const SubNavImpl = ({as, ...props}: SubNavProps) => (
1818
// @ts-ignore forwardedAs is valid here but I don't know how to fix the typescript error
1919
<StyledSubNav forwardedAs={as} {...props} />
@@ -25,7 +25,7 @@ const StyledSubNavLink = forwardRef<HTMLAnchorElement, SubNavLinkProps>(function
2525
return <Box as={PrimerSubNav.Link} ref={ref} {...props} />
2626
})
2727

28-
// @ts-ignore
28+
// @ts-ignore ignore `as` prop error
2929
const SubNavLink = ({as, ...props}: SubNavLinkProps) => (
3030
// @ts-ignore forwardedAs is valid here but I don't know how to fix the typescript error
3131
<StyledSubNavLink forwardedAs={as} {...props} />

packages/styled-react/src/components/Timeline.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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
2424
const 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
3434
const 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
4444
const 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
5454
const 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
6464
const 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

Comments
 (0)