Skip to content

Commit 89411c8

Browse files
authored
[fix] Typescript 4.4 fixes (#2816)
Signed-off-by: Ihor Dykhta <[email protected]>
1 parent 2402896 commit 89411c8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/reducers/src/vis-state-updaters.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3233,7 +3233,7 @@ export function layerFilteredItemsChangeUpdater<S extends VisState>(
32333233
export function syncTimeFilterWithLayerTimelineUpdater<S extends VisState>(
32343234
state: S,
32353235
action: VisStateActions.SyncTimeFilterWithLayerTimelineAction
3236-
) {
3236+
): S {
32373237
const {idx: filterIdx, enable = false} = action;
32383238

32393239
const filter = state.filters[filterIdx] as TimeRangeFilter;

src/utils/src/time.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export function getIntervalByTicks(ticks, start, stop) {
104104
// Otherwise, assume interval is already a time interval and use it.
105105
if (typeof ticks === 'number') {
106106
const target = Math.abs(stop - start) / ticks;
107-
let i = bisector((d: TickInterval) => d.duration).right(tickIntervals, target);
107+
const i = bisector((d: TickInterval) => d.duration).right(tickIntervals, target);
108108
if (i === tickIntervals.length) {
109109
step = tickStep(start / durationYear, stop / durationYear, ticks);
110110
interval = 'year';

0 commit comments

Comments
 (0)