Register components properly so that ts will help out with props
This commit is contained in:
parent
af375adb68
commit
d56e52f20e
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user