You've already forked tf2wikipricing
lint: force allow any
This commit is contained in:
@@ -188,7 +188,8 @@ export async function prepareSchema(): Promise<ItemSchema> {
|
|||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
await setStorageValue(storage_lastUpdateTime, new Date().getTime());
|
await setStorageValue(storage_lastUpdateTime, new Date().getTime());
|
||||||
|
|
||||||
const cacheItems = {}
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
|
const cacheItems: any = {}
|
||||||
|
|
||||||
const responseItems: SchemaResponseItem[] = await response.json()
|
const responseItems: SchemaResponseItem[] = await response.json()
|
||||||
// We want to keep the keys `defindex`, `item_name`, and `attributes`
|
// We want to keep the keys `defindex`, `item_name`, and `attributes`
|
||||||
@@ -217,7 +218,7 @@ export async function prepareSchema(): Promise<ItemSchema> {
|
|||||||
logError(error)
|
logError(error)
|
||||||
}
|
}
|
||||||
|
|
||||||
(cacheItems as any)[defindex.toString()] = {
|
cacheItems[defindex.toString()] = {
|
||||||
"name": item['item_name'],
|
"name": item['item_name'],
|
||||||
"slot": item['item_slot'],
|
"slot": item['item_slot'],
|
||||||
"tradable": tradable,
|
"tradable": tradable,
|
||||||
|
|||||||
Reference in New Issue
Block a user