Skip to content

[steamcommunity] Add asset_properties to CEconItem #74828

Open
kjljxybr wants to merge 4 commits intoDefinitelyTyped:masterfrom
kjljxybr:master
Open

[steamcommunity] Add asset_properties to CEconItem #74828
kjljxybr wants to merge 4 commits intoDefinitelyTyped:masterfrom
kjljxybr:master

Conversation

@kjljxybr
Copy link
Copy Markdown
Contributor

@kjljxybr kjljxybr commented Apr 2, 2026

Please fill in this template.

Select one of these and delete the others:

If changing an existing definition:

@typescript-bot
Copy link
Copy Markdown
Contributor

typescript-bot commented Apr 2, 2026

@kjljxybr Thank you for submitting this PR!

This is a live comment that I will keep updated.

1 package in this PR

Code Reviews

This PR can be merged once it's reviewed by a DT maintainer.

You can test the changes of this PR in the Playground.

Status

  • ✅ No merge conflicts
  • ✅ Continuous integration tests have passed
  • 🕐 Only a DT maintainer can approve changes without tests

Once every item on this list is checked, I'll ask you for permission to merge and publish the changes.


Diagnostic Information: What the bot saw about this PR
{
  "type": "info",
  "now": "-",
  "pr_number": 74828,
  "author": "kjljxybr",
  "headCommitOid": "0832fc6ad969934be26a5fc5450255b8711ac016",
  "mergeBaseOid": "8fe0c8af85c80359cf96a19fb00e423332cf700f",
  "lastPushDate": "2026-04-02T12:50:42.000Z",
  "lastActivityDate": "2026-04-13T21:04:59.000Z",
  "hasMergeConflict": false,
  "isFirstContribution": false,
  "tooManyFiles": false,
  "hugeChange": false,
  "popularityLevel": "Well-liked by everyone",
  "pkgInfo": [
    {
      "name": "steamcommunity",
      "kind": "edit",
      "files": [
        {
          "path": "types/steamcommunity/classes/CEconItem.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/steamcommunity/package.json",
          "kind": "package-meta-ok"
        }
      ],
      "owners": [
        "SenTisso"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Well-liked by everyone"
    }
  ],
  "reviews": [
    {
      "type": "changereq",
      "reviewer": "sentisso",
      "date": "2026-04-13T13:31:10.000Z"
    }
  ],
  "mainBotCommentID": 4177650306,
  "ciResult": "pass"
}

@typescript-bot typescript-bot added the Untested Change This PR does not touch tests label Apr 2, 2026
@typescript-bot typescript-bot moved this to Waiting for Code Reviews in Pull Request Status Board Apr 2, 2026
@typescript-bot
Copy link
Copy Markdown
Contributor

Hey @kjljxybr,

😒 Your PR doesn't modify any tests, so it's hard to know what's being fixed, and your changes might regress in the future. Please consider adding tests to cover the change you're making. Including tests allows this PR to be merged by yourself and the owners of this module.

This can potentially save days of time for you!

@typescript-bot
Copy link
Copy Markdown
Contributor

🔔 @sentisso — please review this PR in the next few days. Be sure to explicitly select Approve or Request Changes in the GitHub UI so I know what's going on.

@typescript-bot typescript-bot added the The CI failed When GH Actions fails label Apr 2, 2026
@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Needs Author Action in Pull Request Status Board Apr 2, 2026
@typescript-bot
Copy link
Copy Markdown
Contributor

@kjljxybr The CI build failed! Please review the logs for more information.

Once you've pushed the fixes, the build will automatically re-run. Thanks!

Note: builds that are failing do not end up on the list of PRs for the DT maintainers to review.

@typescript-bot typescript-bot removed the The CI failed When GH Actions fails label Apr 2, 2026
@typescript-bot typescript-bot moved this from Needs Author Action to Waiting for Code Reviews in Pull Request Status Board Apr 2, 2026
@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Needs Maintainer Review in Pull Request Status Board Apr 2, 2026
@typescript-bot typescript-bot moved this from Needs Maintainer Review to Waiting for Code Reviews in Pull Request Status Board Apr 2, 2026
@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Needs Maintainer Review in Pull Request Status Board Apr 2, 2026
@RyanCavanaugh RyanCavanaugh moved this from Needs Maintainer Review to Waiting for Code Reviews (Blessed) in Pull Request Status Board Apr 2, 2026
@typescript-bot
Copy link
Copy Markdown
Contributor

Re-ping @sentisso:

This PR has been out for over a week, yet I haven't seen any reviews.

Could someone please give it some attention? Thanks!

@typescript-bot typescript-bot added the Unreviewed No one showed up to review this PR, so it'll be reviewed by a DT maintainer. label Apr 13, 2026
app_data?: any;
/** 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?:
Array<
& { propertyid: number; name: string }
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct me if I'm wrong, but is the name always present?

I tested it with dev tools on a cs2 inventory page (/730/2?l=english&count=75&preserve_bbcode=1&raw_asset_properties=1) and I don't see the name, only propertyid and the other value properties, see:

Image

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was using this description to update typings

DoctorMcKay/node-steamcommunity#365

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, so you're also not sure if the name is always there? To be safe, I'd make the name property optional.

@typescript-bot typescript-bot added Revision needed This PR needs code changes before it can be merged. and removed Unreviewed No one showed up to review this PR, so it'll be reviewed by a DT maintainer. labels Apr 13, 2026
@typescript-bot
Copy link
Copy Markdown
Contributor

@kjljxybr One or more reviewers has requested changes. Please address their comments. I'll be back once they sign off or you've pushed new commits. Thank you!

@typescript-bot typescript-bot moved this from Waiting for Code Reviews (Blessed) to Needs Author Action in Pull Request Status Board Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Revision needed This PR needs code changes before it can be merged. Untested Change This PR does not touch tests

Projects

Status: Needs Author Action

Development

Successfully merging this pull request may close these issues.

4 participants