Skip to content

fix: asset product info type#1310

Open
christopher-buss wants to merge 1 commit intoroblox-ts:masterfrom
christopher-buss:feature/product-info
Open

fix: asset product info type#1310
christopher-buss wants to merge 1 commit intoroblox-ts:masterfrom
christopher-buss:feature/product-info

Conversation

@christopher-buss
Copy link
Copy Markdown
Contributor

If an item is currently not on sale, then the product type will not necessarily exist. "Collectible Item" is also a valid type for assets.

image

image

interface AssetProductInfo extends ProductInfo {
/** Describes whether the asset is a User Product, Developer Product, or Game Pass */
ProductType: "User Product";
ProductType?: "Collectible Item" | "User Product";
Copy link
Copy Markdown
Contributor

@Dionysusnu Dionysusnu Oct 25, 2024

Choose a reason for hiding this comment

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

Is this the right way to change the type? Looking at your screenshot, Collectible Item has a handful of other fields, like CanBeSoldInThisGame, CollectibleItemId and SaleLocation. (Though perhaps the first and last of those exist for other asset types too?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants