Skip to content

Commit

Permalink
Charts: Fix types exports (#41562)
Browse files Browse the repository at this point in the history
* fix exports

* changelog

* no need to export types

* export themes
  • Loading branch information
kangzj authored Feb 4, 2025
1 parent 753f7bb commit 3b33cdb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Charts: fixed type exports
5 changes: 1 addition & 4 deletions projects/js-packages/charts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ export { Legend } from './src/components/legend';

// Providers
export { ThemeProvider } from './src/providers/theme';
export { defaultTheme, jetpackTheme, wooTheme } from './src/providers/theme/themes';

// Hooks
export { default as useChartMouseHandler } from './src/hooks/use-chart-mouse-handler';

// Types
export type * from './src/types';
export type { BaseTooltipProps } from './src/components/tooltip';
2 changes: 1 addition & 1 deletion projects/js-packages/charts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"main": "./dist/cjs/index.js",
"module": "./dist/mjs/index.js",
"types": "./dist/types/index.d.ts",
"types": "./dist/index.d.ts",
"sideEffects": [
"*.css",
"*.scss"
Expand Down

0 comments on commit 3b33cdb

Please sign in to comment.