Skip to content

Commit

Permalink
Prefer : T | undefined instead of ?: T
Browse files Browse the repository at this point in the history
  • Loading branch information
AndalYLP committed Feb 14, 2025
1 parent 9f795c6 commit d6e9793
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/roblox.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,15 +195,15 @@ interface ProductInfo {

interface AssetProductInfo extends ProductInfo {
/** Describes whether the asset is a User Product, Developer Product, or Game Pass */
ProductType?: "Collectible Item" | "User Product";
ProductType: "Collectible Item" | "User Product" | undefined;
/** If InfoType was Asset, this is the ID of the given asset. */
AssetId: number;
/** The [type of asset](https://developer.roblox.com/articles/Asset-types) (e.g. place, model, shirt). In TypeScript, you should compare this value to a member of the `AssetTypeId` const enum. */
AssetTypeId: AssetTypeId;
/** Describes whether the asset is purchasable in the current experience. */
CanBeSoldInThisGame?: boolean;
CollectibleItemId?: string;
CollectibleProductId?: string;
CanBeSoldInThisGame: boolean | undefined;
CollectibleItemId: string | undefined;
CollectibleProductId: string | undefined;
/** A table of information describing the item collectible details. */
CollectiblesItemDetails?: {
/** Describes whether the asset is purchasable */
Expand Down

0 comments on commit d6e9793

Please sign in to comment.