Skip to content

Commit 1102a6a

Browse files
authored
🤖 Merge PR DefinitelyTyped#74828 [steamcommunity] Add asset_properties to CEconItem by @kjljxybr
1 parent 26c7aeb commit 1102a6a

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

‎types/steamcommunity/classes/CEconItem.d.ts‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,15 @@ declare class CEconItem {
6565
tags: any[];
6666
/** Not always present. An object containing arbitrary data as reported by the game's item server. */
6767
app_data?: any;
68+
/** An array of objects containing the item's asset properties. These are not always present, and their contents are entirely arbitrary and up to the game. */ asset_properties?:
69+
Array<
70+
& { propertyid: number; name?: string }
71+
& (
72+
| { int_value: string; float_value?: never; string_value?: never }
73+
| { float_value: string; int_value?: never; string_value?: never }
74+
| { string_value: string; int_value?: never; float_value?: never }
75+
)
76+
>;
6877

6978
/**
7079
* Returns a URL where this item's image can be downloaded.

‎types/steamcommunity/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "@types/steamcommunity",
4-
"version": "3.43.9999",
4+
"version": "3.50.9999",
55
"projects": [
66
"https://github.com/DoctorMcKay/node-steamcommunity"
77
],

0 commit comments

Comments
 (0)