mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Adding isPureConfig optional property to react-highcharts (#33914)
This commit is contained in:
parent
b39dfb3541
commit
8ec70ad7f6
5
types/react-highcharts/index.d.ts
vendored
5
types/react-highcharts/index.d.ts
vendored
@ -20,6 +20,11 @@ interface ReactHighchartsProps {
|
||||
* @param after-render callback.
|
||||
*/
|
||||
callback?(chart: Highcharts.ChartObject): void;
|
||||
|
||||
/**
|
||||
* Chart will not rerender if the config is referentially equal to previous and this property is true
|
||||
*/
|
||||
isPureConfig?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -6,9 +6,12 @@ const config: Highcharts.Options = {};
|
||||
|
||||
function callback(chart: Highcharts.ChartObject): void {}
|
||||
|
||||
const isPureConfig = true;
|
||||
|
||||
export const _ = () => (
|
||||
<>
|
||||
<ReactHighcharts config={config} />
|
||||
<ReactHighcharts config={config} callback={callback} />
|
||||
<ReactHighcharts config={config} callback={callback} isPureConfig={isPureConfig} />
|
||||
</>
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user