Files
buildpath/frontend/types/cdragon.ts
Valentin Haudiquet e1ab81854a
All checks were successful
pipeline / lint-and-format (push) Successful in 4m22s
pipeline / build-and-push-images (push) Successful in 2m11s
refactor: make match-collector export its types, and consume them in frontend
2026-04-30 00:06:53 +02:00

44 lines
758 B
TypeScript

import type { ItemStats } from 'dragon-item-parser'
type Champion = {
name: string
alias: string
squarePortraitPath: string
}
type ChampionFull = {
name: string
alias: string
squarePortraitPath: string
title: string
}
type Item = {
id: number
iconPath: string
name?: string
description?: string
plaintext?: string
into?: number[]
from?: number[]
price?: number
priceTotal?: number
stats?: ItemStats
}
type SummonerSpell = {
id: number
iconPath: string
name: string
}
type Perk = {
id: number
name: string
iconPath: string
}
type PerkStyle = {
id: number
name: string
iconPath: string
slots: Array<{ perks: Array<number> }>
}
export type { Champion, ChampionFull, Item, SummonerSpell, Perk, PerkStyle }