@oliasoft-open-source/charts-library 3.5.1 → 3.5.2-beta-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { Dispatch, RefObject } from 'react';
|
|
2
2
|
import { Chart } from 'chart.js';
|
|
3
3
|
import { IState } from '../state/state.interfaces';
|
|
4
|
-
import {
|
|
4
|
+
import { ILineChartOptions } from '../line-chart.interface';
|
|
5
5
|
interface IUseChartState {
|
|
6
6
|
chartRef: RefObject<Chart>;
|
|
7
7
|
options: ILineChartOptions;
|
|
8
8
|
state: IState;
|
|
9
|
-
generatedDatasets: ILineChartDataset[];
|
|
10
9
|
dispatch: Dispatch<any>;
|
|
11
10
|
persistenceId?: string;
|
|
12
11
|
}
|
|
@@ -20,5 +19,5 @@ interface IUseChartState {
|
|
|
20
19
|
* @param dispatch - The dispatch function for state management.
|
|
21
20
|
* @param persistenceId - The chart persistenceId.
|
|
22
21
|
*/
|
|
23
|
-
export declare const useChartState: ({ chartRef, options, state,
|
|
22
|
+
export declare const useChartState: ({ chartRef, options, state, dispatch, persistenceId, }: IUseChartState) => void;
|
|
24
23
|
export {};
|
package/package.json
CHANGED