diff --git a/types/index.esm.d.ts b/types/index.esm.d.ts index 175e4f6fcc1..17b06d78d13 100644 --- a/types/index.esm.d.ts +++ b/types/index.esm.d.ts @@ -1953,6 +1953,8 @@ export class BasePlatform { export class BasicPlatform extends BasePlatform {} export class DomPlatform extends BasePlatform {} +export const Decimation: Plugin; + export const enum DecimationAlgorithm { lttb = 'lttb', minmax = 'min-max', diff --git a/types/tests/register.ts b/types/tests/register.ts new file mode 100644 index 00000000000..3e293fcbdb5 --- /dev/null +++ b/types/tests/register.ts @@ -0,0 +1,52 @@ +import { + Chart, + ArcElement, + LineElement, + BarElement, + PointElement, + BarController, + BubbleController, + DoughnutController, + LineController, + PieController, + PolarAreaController, + RadarController, + ScatterController, + CategoryScale, + LinearScale, + LogarithmicScale, + RadialLinearScale, + TimeScale, + TimeSeriesScale, + Decimation, + Filler, + Legend, + Title, + Tooltip +} from '../index.esm'; + +Chart.register( + ArcElement, + LineElement, + BarElement, + PointElement, + BarController, + BubbleController, + DoughnutController, + LineController, + PieController, + PolarAreaController, + RadarController, + ScatterController, + CategoryScale, + LinearScale, + LogarithmicScale, + RadialLinearScale, + TimeScale, + TimeSeriesScale, + Decimation, + Filler, + Legend, + Title, + Tooltip +);