Skip to content

Commit a11d894

Browse files
committed
AG-9002 Use NonNullablePath where relevant
1 parent d60edf1 commit a11d894

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/ag-charts-enterprise/src/series/range-area/rangeArea.test.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import {
44
AgCartesianChartOptions,
55
type AgChartOptions,
66
AgCharts,
7-
AgRangeAreaSeriesItemType,
87
AgRangeAreaSeriesLabelPlacement,
98
AgRangeAreaSeriesOptions,
109
AgRangeAreaSeriesStyle,
@@ -23,6 +22,7 @@ import {
2322
spyOnAnimationManager,
2423
waitForChartStability,
2524
} from 'ag-charts-community-test';
25+
import { NonNullablePath } from 'ag-charts-core';
2626

2727
import { prepareEnterpriseTestOptions } from '../../test/utils';
2828

@@ -1297,9 +1297,8 @@ describe('RangeAreaSeries', () => {
12971297
describe('AG-15773 itemStyler itemId', () => {
12981298
it('should render high and low markers differently', async () => {
12991299
type D = { month: string; low: number; high: number };
1300-
const itemStyler: NonNullable<
1301-
NonNullable<NonNullable<AgRangeAreaSeriesOptions<D>['item']>[AgRangeAreaSeriesItemType]>['marker']
1302-
>['itemStyler'] = (params) => {
1300+
type F = NonNullablePath<AgRangeAreaSeriesOptions<D>, 'item', 'low' | 'high', 'marker', 'itemStyler'>;
1301+
const itemStyler: F = (params) => {
13031302
switch (params.itemId) {
13041303
case 'high':
13051304
return { fill: 'lime', stroke: 'forestgreen', shape: 'star' };

0 commit comments

Comments
 (0)