diff --git a/packages/bar/index.d.ts b/packages/bar/index.d.ts index 5f8396016..0537b886c 100644 --- a/packages/bar/index.d.ts +++ b/packages/bar/index.d.ts @@ -136,13 +136,7 @@ declare module '@nivo/bar' { markers: CartesianMarkerProps[] }> - export enum BarLayerType { - Grid = 'grid', - Axes = 'axes', - Bars = 'bars', - Markers = 'markers', - Legends = 'legends', - } + export type BarLayerType = 'grid' | 'axes' | 'bars' | 'markers' | 'legends' export type BarCustomLayer = (props: any) => React.ReactNode export type Layer = BarLayerType | BarCustomLayer