Skip to content

Commit

Permalink
Fix for angry typescript :)
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Törnlund committed Feb 4, 2024
1 parent 5e3b563 commit d515519
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/components/SimulatedFan.vue
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
<script setup lang="ts">
import { emit, listen } from '@tauri-apps/api/event'
import { computed, ref } from 'vue'
import * as chartConfig from './chartConfig.js'
import VueApexCharts from "vue3-apexcharts";
import * as chartConfig from './chartConfig.ts'
import fan from './fan.svg';
const props = defineProps(['id']);
const value = ref(0);
const dataPoints = ref([]);
listen(`fan-val-${props.id}`, (event) => {
type DataPoint = {
x: number;
y: number;
}
const dataPoints = ref<Array<DataPoint>>([]);
listen<string>(`fan-val-${props.id}`, (event) => {
let new_value = parseInt(event.payload);
value.value = new_value;
Expand Down
File renamed without changes.

0 comments on commit d515519

Please sign in to comment.