-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
feature requestIssues that are feature requestsIssues that are feature requeststypescriptPRs or Issues surrounding Types or TS refactoringPRs or Issues surrounding Types or TS refactoring
Description
As the function passed into the shape property of a pie chart has a parameter of the PieSectorShapeProps type, it makes sense to export this so we can use this type directly instead of always adding the isActive property manually to PieSectorDataItem, when creating our own functions.
Lines 163 to 164 in d3ccaac
| type PieSectorShapeProps = PieSectorDataItem & { isActive: boolean; index: number }; | |
| type PieShape = ReactNode | ((props: PieSectorShapeProps, index: number) => React.ReactElement); |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
feature requestIssues that are feature requestsIssues that are feature requeststypescriptPRs or Issues surrounding Types or TS refactoringPRs or Issues surrounding Types or TS refactoring