More typescript

This commit is contained in:
2024-11-28 18:36:57 +01:00
parent faa17e87c9
commit afb9f106f9
4 changed files with 36 additions and 39 deletions

27
frontend/types/cdragon.ts Normal file
View File

@@ -0,0 +1,27 @@
declare global {
type ChampionsResponse = {
data: Ref<Array<Champion>>
}
type ChampionResponse = {
data: Ref<ChampionFull>
}
type Champion = {
name: string
alias: string
squarePortraitPath: string
}
type ChampionFull = {
name: string
alias: string
squarePortraitPath: string
title: string
}
type ItemResponse = {
data: Ref<Array<Item>>
}
type Item = {
id: number
}
}
export {}