Skip to content

fix(types): add zIndex as valid AxisType, remove CategoricalChartOptions assertions#3108

Merged
arcthur merged 2 commits into
recharts:masterfrom
neefrehman:fix_types/add-axisType
Dec 21, 2022
Merged

fix(types): add zIndex as valid AxisType, remove CategoricalChartOptions assertions#3108
arcthur merged 2 commits into
recharts:masterfrom
neefrehman:fix_types/add-axisType

Conversation

@neefrehman

Copy link
Copy Markdown
Contributor

Follow-on from #3103

Adds 'zIndex' to the AxisType union type, which means we can avoid the type
assertion in ComposedChart.tsx and ScatterChart.tsx.

I've also removed the unnecessary type assertion to CategoricalChartOptions in other chart components, which should improve type safety a little.

@neefrehman neefrehman changed the title fix(types): add zIndex as valid AxisType fix(types): add zIndex as valid AxisType, remove CategoricalChartOptions assertions Dec 19, 2022

@ckifer ckifer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for separating these changes

@ckifer
ckifer requested a review from arcthur December 20, 2022 16:31
@arcthur
arcthur merged commit 1d21599 into recharts:master Dec 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants