Register components properly so that ts will help out with props

This commit is contained in:
Peter 2023-09-17 20:01:52 -04:00
parent af375adb68
commit d56e52f20e

View File

@ -43,6 +43,7 @@
<script lang="ts">
import StandingsTable from '@/components/StandingsTable.vue'
import NewsPreview from '@/components/NewsPreview.vue'
import { fetchStandings, type TeamStanding } from '@/services/standingsService'
import { fetchCurrentLeagueInfo, type LeagueInfo } from '@/services/currentService'
import { CURRENT_SEASON } from '@/services/utilities'
@ -50,6 +51,10 @@ import { getPosts, type NewsPost } from '@/services/newsService'
export default {
name: "HomeView",
components: {
StandingsTable,
NewsPreview
},
data() {
return {
seasonNumber: CURRENT_SEASON as number,