Skip to content

Commit

Permalink
fix(types): fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
kagawagao committed Jan 17, 2022
1 parent 226e737 commit 3d9e6c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/base.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ const BaseChart = defineComponent<
},
},
mounted() {
const chartRef = this.$attrs.chartRef as Ref<BasePlot<any> | null>
const chartRef = this.$attrs
.chartRef as unknown as Ref<BasePlot<any> | null>
const { chart: Chart, onReady } = this.attrConfig
const plot = new Chart(this.$el as HTMLElement, {
data: this.chartData,
Expand Down

1 comment on commit 3d9e6c6

@vercel
Copy link

@vercel vercel bot commented on 3d9e6c6 Jan 17, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.