feat: updated official_info structure
This commit is contained in:
@@ -21,30 +21,8 @@ type UnrelatedDataArray = ['$', string, null, unknown]
|
||||
|
||||
export type OfficialArray = [OfficialDataArray, UnrelatedDataArray]
|
||||
|
||||
export type OfficialInfo = {
|
||||
length: number
|
||||
dates: string[]
|
||||
info: {
|
||||
[date: string]: OfficialInfoOperatorConfig[]
|
||||
}
|
||||
}
|
||||
|
||||
export interface OfficialInfoOperatorConfig {
|
||||
codename: {
|
||||
'zh-CN': string
|
||||
'en-US': string
|
||||
}
|
||||
type: 'operator' | 'skin'
|
||||
link: string
|
||||
id: string
|
||||
}
|
||||
|
||||
export interface OperatorConfig extends OfficialInfoOperatorConfig {
|
||||
date: string
|
||||
}
|
||||
|
||||
export type OfficialInfoMapping = {
|
||||
[id: string]: OperatorConfig
|
||||
[id: string]: OfficialInfoOperatorConfigV2
|
||||
}
|
||||
|
||||
export type OfficialInfoV2 = {
|
||||
|
||||
Reference in New Issue
Block a user