Skip to content

Commit

Permalink
chore: converting more any to real type 08
Browse files Browse the repository at this point in the history
  • Loading branch information
monfera committed Sep 16, 2021
1 parent 57c5c8f commit 3607f0a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/charts/src/chart_types/xy_chart/rendering/area.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ import {
export function renderArea(
shift: number,
dataSeries: DataSeries,
xScale: Scale<any>,
yScale: Scale<any>,
xScale: Scale<unknown>,
yScale: Scale<unknown>,
panel: Dimensions,
color: Color,
curve: CurveType,
Expand Down
6 changes: 5 additions & 1 deletion packages/charts/src/chart_types/xy_chart/rendering/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ export function isDatumFilled({ filled, initialY1 }: DataSeriesDatum) {
* @param xScaleOffset
* @internal
*/
export function getClippedRanges(dataset: DataSeriesDatum[], xScale: Scale<any>, xScaleOffset: number): ClippedRanges {
export function getClippedRanges(
dataset: DataSeriesDatum[],
xScale: Scale<unknown>,
xScaleOffset: number,
): ClippedRanges {
let firstNonNullX: number | null = null;
let hasNull = false;

Expand Down

0 comments on commit 3607f0a

Please sign in to comment.