tf2-item-format
Version:
Format's TF2 items like backpack.tf does
21 lines (20 loc) • 601 B
TypeScript
import { ItemNumber, TargetOutputItem, StringQuality } from '../types';
import { ISchema } from '../types/schema';
/**
* Holds all attributes we received from name.
*/
export default class Attributes {
schema: ISchema;
craftable: boolean;
australium: boolean;
festivized: boolean;
killstreak: string | void;
wear: string | void;
effect: string | void;
texture: string | void;
itemNumber: ItemNumber | null;
usableItem?: Partial<TargetOutputItem> | null;
isUniqueHat?: boolean;
quality: StringQuality;
constructor(schema: ISchema, name: string);
}