refactor: make match-collector export its types, and consume them in frontend
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
<script setup lang="ts">
|
||||
import { CDRAGON_BASE, mapPath } from '~/utils/cdragon'
|
||||
|
||||
import type { Item } from '~/types/cdragon'
|
||||
import type { ItemTag } from 'match_collector'
|
||||
|
||||
interface Props {
|
||||
item: Item
|
||||
size?: number
|
||||
|
||||
@@ -7,6 +7,9 @@ import {
|
||||
type ParsedDescription
|
||||
} from 'dragon-item-parser'
|
||||
|
||||
import type { Item } from '~/types/cdragon'
|
||||
import type { ItemTag } from 'match_collector'
|
||||
|
||||
interface Props {
|
||||
item: Item | null
|
||||
show: boolean
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
<script setup lang="ts">
|
||||
import { LinePath as svgdomarrowsLinePath } from 'svg-dom-arrows'
|
||||
|
||||
import type { ItemTree } from 'match_collector'
|
||||
import type { Item } from '~/types/cdragon'
|
||||
|
||||
defineProps<{
|
||||
tree: ItemTree
|
||||
parentCount?: number
|
||||
|
||||
Reference in New Issue
Block a user