refactor: make match-collector export its types, and consume them in frontend
This commit is contained in:
@@ -10,6 +10,9 @@ import {
|
||||
} from 'chart.js'
|
||||
import { Bar } from 'vue-chartjs'
|
||||
|
||||
import type { Champion } from '~/types/cdragon'
|
||||
import type { LaneData } from 'match_collector'
|
||||
|
||||
// Register
|
||||
ChartJS.register(Title, Tooltip, Legend, BarElement, CategoryScale, LinearScale)
|
||||
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import type { LaneData } from 'match_collector'
|
||||
import type { Champion } from '~/types/cdragon'
|
||||
|
||||
defineProps<{
|
||||
title: string
|
||||
tier: Array<{ champion: Champion; lane: LaneData }>
|
||||
|
||||
Reference in New Issue
Block a user