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">
|
<script lang="ts">
|
||||||
import StandingsTable from '@/components/StandingsTable.vue'
|
import StandingsTable from '@/components/StandingsTable.vue'
|
||||||
|
import NewsPreview from '@/components/NewsPreview.vue'
|
||||||
import { fetchStandings, type TeamStanding } from '@/services/standingsService'
|
import { fetchStandings, type TeamStanding } from '@/services/standingsService'
|
||||||
import { fetchCurrentLeagueInfo, type LeagueInfo } from '@/services/currentService'
|
import { fetchCurrentLeagueInfo, type LeagueInfo } from '@/services/currentService'
|
||||||
import { CURRENT_SEASON } from '@/services/utilities'
|
import { CURRENT_SEASON } from '@/services/utilities'
|
||||||
@ -50,6 +51,10 @@ import { getPosts, type NewsPost } from '@/services/newsService'
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "HomeView",
|
name: "HomeView",
|
||||||
|
components: {
|
||||||
|
StandingsTable,
|
||||||
|
NewsPreview
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
seasonNumber: CURRENT_SEASON as number,
|
seasonNumber: CURRENT_SEASON as number,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user