update create-lwc-plugin package to use v4.2.0

This commit is contained in:
Mark Silverwood 2024-07-26 14:13:20 +01:00
parent ff9279830c
commit fcc1fe338d
No known key found for this signature in database
3 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@
Description of the Plugin.
- Developed for Lightweight Charts version: `v4.1.0`
- Developed for Lightweight Charts version: `v4.2.0`
## Running Locally

View File

@ -12,6 +12,6 @@
"dependencies": {
"dts-bundle-generator": "^8.0.1",
"fancy-canvas": "^2.1.0",
"lightweight-charts": "^4.1.0-rc2"
"lightweight-charts": "^4.2.0"
}
}

View File

@ -13,7 +13,7 @@ interface ChartProps {
type IFrameWindow<TVersion extends keyof LightweightChartsApiTypeMap> = Window & {
createChart: LightweightChartsApiTypeMap[TVersion]['createChart'];
createChartEx: TVersion extends '4.1' | 'current' ? LightweightChartsApiTypeMap[TVersion]['createChartEx'] : undefined;
createChartEx: TVersion extends '4.2' | '4.1' | 'current' ? LightweightChartsApiTypeMap[TVersion]['createChartEx'] : undefined;
run?: () => void;
};