Use typescript syntax

This commit is contained in:
Matthias 2020-10-25 10:35:19 +01:00
parent 42bc092e71
commit 350e5327e1
3 changed files with 11 additions and 6 deletions

View File

@ -13,11 +13,12 @@
</div> </div>
</template> </template>
<script> <script lang="ts">
import Vue from 'vue';
import { mapActions, mapState } from 'vuex'; import { mapActions, mapState } from 'vuex';
import DailyChart from '@/components/charts/DailyChart.vue'; import DailyChart from '@/components/charts/DailyChart.vue';
export default { export default Vue.extend({
name: 'DailyStats', name: 'DailyStats',
components: { components: {
DailyChart, DailyChart,
@ -39,5 +40,5 @@ export default {
methods: { methods: {
...mapActions('ftbot', ['getDaily']), ...mapActions('ftbot', ['getDaily']),
}, },
}; });
</script> </script>

View File

@ -8,7 +8,9 @@
</template> </template>
<script lang="ts"> <script lang="ts">
export default { import Vue from 'vue';
export default Vue.extend({
name: 'ValuePair', name: 'ValuePair',
props: { props: {
description: { description: {
@ -16,7 +18,7 @@ export default {
required: true, required: true,
}, },
}, },
}; });
</script> </script>
<style scoped> <style scoped>

View File

@ -7,7 +7,9 @@
</template> </template>
<script lang="ts"> <script lang="ts">
export default {}; import Vue from 'vue';
export default Vue.extend({});
</script> </script>
<style scoped></style> <style scoped></style>