Skip to content

Commit

Permalink
fix(front): chart.js Point type import
Browse files Browse the repository at this point in the history
Fix typescript build error "error TS2307: Cannot find module
'node_modules/chart.js/dist/core/core.controller' or its corresponding
type declarations."
  • Loading branch information
rezib committed Nov 21, 2024
1 parent 2e69d87 commit 4816d0f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions frontend/src/composables/dashboard/LiveChart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@ import { useClusterDataPoller } from '@/composables/DataPoller'
import type { ClusterDataPoller } from '@/composables/DataPoller'
import type { MetricValue } from '@/composables/GatewayAPI'
import { Chart } from 'chart.js/auto'
import type { ChartOptions, TimeScaleOptions, TimeUnit } from 'chart.js'
import type { ChartOptions, TimeScaleOptions, TimeUnit, Point } from 'chart.js'
import 'chartjs-adapter-luxon'
import { DateTime } from 'luxon'
import type { Point } from 'node_modules/chart.js/dist/core/core.controller'

export interface DashboardLiveChart<MetricKeyType extends string> {
metrics: ClusterDataPoller<Record<MetricKeyType, MetricValue[]>>
Expand Down

0 comments on commit 4816d0f

Please sign in to comment.