@codecademy/gamut

73.6.173.6.2-alpha.3e37cd.0
dist/BarChart/shared/types.d.ts
~dist/BarChart/shared/types.d.tsModified
+2−2
Index: package/dist/BarChart/shared/types.d.ts
===================================================================
--- package/dist/BarChart/shared/types.d.ts
+++ package/dist/BarChart/shared/types.d.ts
@@ -1,7 +1,7 @@
 import { GamutIconProps } from '@codecademy/gamut-icons';
 import { ColorAlias } from '@codecademy/gamut-styles';
-import { ComponentProps, HTMLProps } from 'react';
+import { ComponentProps, ComponentPropsWithoutRef, HTMLProps } from 'react';
 import { ButtonProps } from '../../Button';
 import { Text } from '../../Typography/Text';
 import { HeadingTags } from '../../Typography/types';
 import { CustomSortOption } from '../utils/hooks';
@@ -66,9 +66,9 @@
  * Helper type that extracts the element type from an array of bars.
  * Handles both mutable and readonly arrays.
  */
 export type InferBarType<T> = T extends readonly (infer U)[] ? U extends BarProps ? U : BarProps : T extends (infer U)[] ? U extends BarProps ? U : BarProps : BarProps;
-export type BarChartProps<TBarValues extends BarProps[] | readonly BarProps[] = BarProps[]> = BarChartLabel & {
+export type BarChartProps<TBarValues extends BarProps[] | readonly BarProps[] = BarProps[]> = Omit<ComponentPropsWithoutRef<'figure'>, 'title' | 'aria-labelledby' | 'color'> & BarChartLabel & {
     /** Whether to animate bars on mount */
     animate?: boolean;
     /** Array of bar data to render */
     barValues: TBarValues;