lint: use boolean

This commit is contained in:
xenticore
2025-04-24 17:38:21 -04:00
parent df3b40fbdd
commit d449f73e0c

View File

@@ -36,15 +36,15 @@ export class ItemSchema {
[key: string]: {
name: string,
slot: ItemSlot,
tradable: Boolean,
hasAustraliumVariant: Boolean,
tradable: boolean,
hasAustraliumVariant: boolean,
festiveVariant: number | null
botkillerVariants: Array<number> | null
canKillstreakify: Boolean
canKillstreakify: boolean
};
}
export function getItemIndexByName(schema: ItemSchema, name: string, excludeStock: Boolean = true, excludeDecorated: Boolean = true) {
export function getItemIndexByName(schema: ItemSchema, name: string, excludeStock: boolean = true, excludeDecorated: boolean = true) {
for (const [defindex, value] of Object.entries(schema)) {
if (value['name'] == name) {
const index = parseInt(defindex)
@@ -60,7 +60,7 @@ export function getTradableStatusByDefindex(schema: ItemSchema, defindex: number
return schema[defindex.toString()].tradable
}
export function getTradableStatusByName(schema: ItemSchema, name: string, excludeStock: Boolean = true, excludeDecorated = true,) {
export function getTradableStatusByName(schema: ItemSchema, name: string, excludeStock: boolean = true, excludeDecorated = true,) {
for (const [defindex, value] of Object.entries(schema)) {
if (value['name'] == name) {
const index = parseInt(defindex)