diff --git a/src/export/core.ts b/src/export/core.ts index 7d42fe1abf..fb3034f3df 100644 --- a/src/export/core.ts +++ b/src/export/core.ts @@ -46,6 +46,16 @@ export { ToggleAxisBreakPayload, } from '../component/axis/axisAction'; +// Types of the `params` argument passed to formatter callbacks +// (for example `tooltip.formatter` and `label.formatter`), so that +// these callbacks can be typed without importing from internal paths. +export { + CallbackDataParams, +} from '../util/types'; +export { + TopLevelFormatterParams, +} from '../component/tooltip/TooltipModel'; + export { LinearGradientObject } from 'zrender/src/graphic/LinearGradient'; export { RadialGradientObject } from 'zrender/src/graphic/RadialGradient';