74 lines
1.3 KiB
TypeScript
74 lines
1.3 KiB
TypeScript
declare global {
|
|
/**
|
|
* Represents an item in the build tree
|
|
*/
|
|
interface ItemTree {
|
|
count: number
|
|
data: number
|
|
children: ItemTree[]
|
|
}
|
|
|
|
/**
|
|
* Represents champion build information
|
|
*/
|
|
interface Builds {
|
|
start: Array<{ count: number; data: number }>
|
|
tree: ItemTree
|
|
bootsFirst: number
|
|
boots: Array<{ count: number; data: number }>
|
|
lateGame: Array<{ count: number; data: number }>
|
|
suppItems?: Array<{ count: number; data: number }>
|
|
}
|
|
|
|
/**
|
|
* Represents a rune configuration
|
|
*/
|
|
interface Rune {
|
|
count: number
|
|
primaryStyle: number
|
|
secondaryStyle: number
|
|
selections: number[]
|
|
pickrate: number
|
|
}
|
|
|
|
/**
|
|
* Represents lane-specific champion data
|
|
*/
|
|
interface LaneData {
|
|
data: string
|
|
count: number
|
|
winningMatches: number
|
|
losingMatches: number
|
|
winrate: number
|
|
pickrate: number
|
|
runes?: Rune[]
|
|
builds?: Builds
|
|
}
|
|
|
|
/**
|
|
* Represents complete champion data
|
|
*/
|
|
interface ChampionData {
|
|
id: number
|
|
name: string
|
|
alias: string
|
|
gameCount: number
|
|
winrate: number
|
|
pickrate: number
|
|
lanes: LaneData[]
|
|
}
|
|
|
|
/**
|
|
* Champion summary from CDragon
|
|
*/
|
|
interface ChampionSummary {
|
|
id: number
|
|
name: string
|
|
alias: string
|
|
squarePortraitPath: string
|
|
// Add other relevant fields as needed
|
|
}
|
|
}
|
|
|
|
export {}
|