krapio
Library referenceTypes

SkinDefinition

type SkinDefinition = {
  id?: number;
  index: number;
  name: string;
  rarity: number;
  seas?: number;
  thumbnail?: string;
  tradable?: boolean;
  type: number;
  weapon?: number;
} & Record<string, unknown>;

extra config properties of a skin (creator, glow, frames, ...) get merged into the root, so the index signature is real

Type Declaration

NameTypeDescription
id?numberundocumented, equals index on the single skin endpoint
indexnumberSkin index (ID)
namestringSkin name
raritynumberSkin rarity
seas?numberthe season; the docs call this field season
thumbnail?stringundocumented
tradable?booleanundocumented
typenumberSkin type
weapon?numberomitted when the skin has no weapon

On this page