@rbxts/types 1.0.825 → 1.0.827
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/include/generated/None.d.ts +16 -43
- package/include/roblox.d.ts +9 -0
- package/package.json +1 -1
|
@@ -43,7 +43,6 @@ interface Services {
|
|
|
43
43
|
ContextActionService: ContextActionService;
|
|
44
44
|
ControllerService: ControllerService;
|
|
45
45
|
ConversationalAIAcceptanceService: ConversationalAIAcceptanceService;
|
|
46
|
-
CoreGui: CoreGui;
|
|
47
46
|
CoreScriptDebuggingManagerHelper: CoreScriptDebuggingManagerHelper;
|
|
48
47
|
CreationDBService: CreationDBService;
|
|
49
48
|
CreatorStoreService: CreatorStoreService;
|
|
@@ -3326,7 +3325,7 @@ interface AssetService extends Instance {
|
|
|
3326
3325
|
* @param templatePlaceID
|
|
3327
3326
|
* @param description
|
|
3328
3327
|
*/
|
|
3329
|
-
CreatePlaceInPlayerInventoryAsync(this: AssetService, player:
|
|
3328
|
+
CreatePlaceInPlayerInventoryAsync(this: AssetService, player: Player, placeName: string, templatePlaceID: number, description: string): number;
|
|
3330
3329
|
/**
|
|
3331
3330
|
* Returns an array of asset IDs that are contained in a specified package.
|
|
3332
3331
|
*
|
|
@@ -6507,32 +6506,6 @@ interface BasePlayerGui extends Instance {
|
|
|
6507
6506
|
*/
|
|
6508
6507
|
GetGuiObjectsAtPosition(this: BasePlayerGui, x: number, y: number): Array<GuiObject>;
|
|
6509
6508
|
}
|
|
6510
|
-
/**
|
|
6511
|
-
* The CoreGui is a service used to store Guis created in-game by Roblox for the core user interface found in every game (such as the game menu, the playerlist, the backpack, etc.). It can also be used by `Plugins` in Roblox Studio.
|
|
6512
|
-
*
|
|
6513
|
-
* - **Tags**: NotCreatable, Service, NotReplicated
|
|
6514
|
-
*
|
|
6515
|
-
* [Creator Hub](https://create.roblox.com/docs/reference/engine/classes/CoreGui)
|
|
6516
|
-
*/
|
|
6517
|
-
interface CoreGui extends BasePlayerGui {
|
|
6518
|
-
/**
|
|
6519
|
-
* **DO NOT USE!**
|
|
6520
|
-
*
|
|
6521
|
-
* This field exists to force TypeScript to recognize this as a nominal type
|
|
6522
|
-
* @hidden
|
|
6523
|
-
* @deprecated
|
|
6524
|
-
*/
|
|
6525
|
-
readonly _nominal_CoreGui: unique symbol;
|
|
6526
|
-
/**
|
|
6527
|
-
* The current version of the CoreGui. Everytime the CoreGui is majorly changed, this number is increased.
|
|
6528
|
-
*
|
|
6529
|
-
* - **ThreadSafety**: ReadSafe
|
|
6530
|
-
* - **Tags**: NotReplicated
|
|
6531
|
-
*
|
|
6532
|
-
* [Creator Hub](https://create.roblox.com/docs/reference/engine/classes/CoreGui#Version)
|
|
6533
|
-
*/
|
|
6534
|
-
readonly Version: number;
|
|
6535
|
-
}
|
|
6536
6509
|
/**
|
|
6537
6510
|
* A container for a player's currently rendered `ScreenGuis`.
|
|
6538
6511
|
*
|
|
@@ -22363,7 +22336,7 @@ interface LocalizationService extends Instance {
|
|
|
22363
22336
|
* @param player The player that you are getting country/region information for.
|
|
22364
22337
|
* @returns A string indicating the country/region code of a player.
|
|
22365
22338
|
*/
|
|
22366
|
-
GetCountryRegionForPlayerAsync(this: LocalizationService, player:
|
|
22339
|
+
GetCountryRegionForPlayerAsync(this: LocalizationService, player: Player): string;
|
|
22367
22340
|
/**
|
|
22368
22341
|
* Yields until the cloud `LocalizationTable` for the argument locale has been loaded - if available. Returns a `Translator` instance to be used for translations for the provided locale.
|
|
22369
22342
|
*
|
|
@@ -23042,7 +23015,7 @@ interface MarketplaceService extends Instance {
|
|
|
23042
23015
|
* @param player
|
|
23043
23016
|
* @param bundleId
|
|
23044
23017
|
*/
|
|
23045
|
-
PromptBundlePurchase(this: MarketplaceService, player:
|
|
23018
|
+
PromptBundlePurchase(this: MarketplaceService, player: Player, bundleId: number): void;
|
|
23046
23019
|
/**
|
|
23047
23020
|
* Prompts a user to cancel a subscription for the given `subscriptionId`.
|
|
23048
23021
|
*
|
|
@@ -23064,7 +23037,7 @@ interface MarketplaceService extends Instance {
|
|
|
23064
23037
|
* @param player
|
|
23065
23038
|
* @param gamePassId
|
|
23066
23039
|
*/
|
|
23067
|
-
PromptGamePassPurchase(this: MarketplaceService, player:
|
|
23040
|
+
PromptGamePassPurchase(this: MarketplaceService, player: Player, gamePassId: number): void;
|
|
23068
23041
|
/**
|
|
23069
23042
|
* Prompts a user to purchase Roblox Premium.
|
|
23070
23043
|
*
|
|
@@ -23074,7 +23047,7 @@ interface MarketplaceService extends Instance {
|
|
|
23074
23047
|
* @param this The service responsible for in-experience transactions.
|
|
23075
23048
|
* @param player The user being prompted to purchase Premium.
|
|
23076
23049
|
*/
|
|
23077
|
-
PromptPremiumPurchase(this: MarketplaceService, player:
|
|
23050
|
+
PromptPremiumPurchase(this: MarketplaceService, player: Player): void;
|
|
23078
23051
|
/**
|
|
23079
23052
|
* Prompts a user to purchase a developer product with the given `productId`.
|
|
23080
23053
|
*
|
|
@@ -23206,7 +23179,7 @@ interface MarketplaceService extends Instance {
|
|
|
23206
23179
|
* @param assetId The asset ID for which the given player's inventory is tested.
|
|
23207
23180
|
* @returns Indicates whether the given player's inventory contains the given asset.
|
|
23208
23181
|
*/
|
|
23209
|
-
PlayerOwnsAsset(this: MarketplaceService, player:
|
|
23182
|
+
PlayerOwnsAsset(this: MarketplaceService, player: Player, assetId: number): boolean;
|
|
23210
23183
|
/**
|
|
23211
23184
|
* Returns whether the given player owns the given bundle.
|
|
23212
23185
|
*
|
|
@@ -23239,13 +23212,13 @@ interface MarketplaceService extends Instance {
|
|
|
23239
23212
|
*
|
|
23240
23213
|
* [Creator Hub](https://create.roblox.com/docs/reference/engine/classes/MarketplaceService#PromptBulkPurchaseFinished)
|
|
23241
23214
|
*/
|
|
23242
|
-
readonly PromptBulkPurchaseFinished: RBXScriptSignal<(player:
|
|
23215
|
+
readonly PromptBulkPurchaseFinished: RBXScriptSignal<(player: Player, status: Enum.MarketplaceBulkPurchasePromptStatus, results: PromptBulkPurchaseFinishedResults) => void>;
|
|
23243
23216
|
/**
|
|
23244
23217
|
* - **ThreadSafety**: Unsafe
|
|
23245
23218
|
*
|
|
23246
23219
|
* [Creator Hub](https://create.roblox.com/docs/reference/engine/classes/MarketplaceService#PromptBundlePurchaseFinished)
|
|
23247
23220
|
*/
|
|
23248
|
-
readonly PromptBundlePurchaseFinished: RBXScriptSignal<(player:
|
|
23221
|
+
readonly PromptBundlePurchaseFinished: RBXScriptSignal<(player: Player, bundleId: number, wasPurchased: boolean) => void>;
|
|
23249
23222
|
/**
|
|
23250
23223
|
* Fires when a purchase prompt for a pass is closed.
|
|
23251
23224
|
*
|
|
@@ -23253,7 +23226,7 @@ interface MarketplaceService extends Instance {
|
|
|
23253
23226
|
*
|
|
23254
23227
|
* [Creator Hub](https://create.roblox.com/docs/reference/engine/classes/MarketplaceService#PromptGamePassPurchaseFinished)
|
|
23255
23228
|
*/
|
|
23256
|
-
readonly PromptGamePassPurchaseFinished: RBXScriptSignal<(player:
|
|
23229
|
+
readonly PromptGamePassPurchaseFinished: RBXScriptSignal<(player: Player, gamePassId: number, wasPurchased: boolean) => void>;
|
|
23257
23230
|
/**
|
|
23258
23231
|
* Fires when a purchase prompt for Roblox Premium is closed.
|
|
23259
23232
|
*
|
|
@@ -23277,7 +23250,7 @@ interface MarketplaceService extends Instance {
|
|
|
23277
23250
|
*
|
|
23278
23251
|
* [Creator Hub](https://create.roblox.com/docs/reference/engine/classes/MarketplaceService#PromptPurchaseFinished)
|
|
23279
23252
|
*/
|
|
23280
|
-
readonly PromptPurchaseFinished: RBXScriptSignal<(player:
|
|
23253
|
+
readonly PromptPurchaseFinished: RBXScriptSignal<(player: Player, assetId: number, isPurchased: boolean) => void>;
|
|
23281
23254
|
/**
|
|
23282
23255
|
* Fires when a purchase prompt for a subscription is closed.
|
|
23283
23256
|
*
|
|
@@ -32603,7 +32576,7 @@ interface SocialService extends Instance {
|
|
|
32603
32576
|
* @param player The `Player` to prompt with the invite popup.
|
|
32604
32577
|
* @param experienceInviteOptions Optional `ExperienceInviteOptions` object for customizing the prompt.
|
|
32605
32578
|
*/
|
|
32606
|
-
PromptGameInvite(this: SocialService, player:
|
|
32579
|
+
PromptGameInvite(this: SocialService, player: Player, experienceInviteOptions?: Instance): void;
|
|
32607
32580
|
/**
|
|
32608
32581
|
* Prompts the given `Player` with the phone book.
|
|
32609
32582
|
*
|
|
@@ -32614,7 +32587,7 @@ interface SocialService extends Instance {
|
|
|
32614
32587
|
* @param player The player to prompt with the phone book.
|
|
32615
32588
|
* @param tag String to help differentiate between various phone book "entry points" or similar. For example, you can pass a string defining what region of an experience the calling player's character is currently in.
|
|
32616
32589
|
*/
|
|
32617
|
-
PromptPhoneBook(this: SocialService, player:
|
|
32590
|
+
PromptPhoneBook(this: SocialService, player: Player, tag: string): void;
|
|
32618
32591
|
/**
|
|
32619
32592
|
* Shows the calling player's self view.
|
|
32620
32593
|
*
|
|
@@ -32636,7 +32609,7 @@ interface SocialService extends Instance {
|
|
|
32636
32609
|
* @param player The `Player` instance of the player potentially sending a call invite.
|
|
32637
32610
|
* @returns Whether the specified player can send a call invite.
|
|
32638
32611
|
*/
|
|
32639
|
-
CanSendCallInviteAsync(this: SocialService, player:
|
|
32612
|
+
CanSendCallInviteAsync(this: SocialService, player: Player): boolean;
|
|
32640
32613
|
/**
|
|
32641
32614
|
* Indicates whether the given `Player` can invite other players.
|
|
32642
32615
|
*
|
|
@@ -32649,7 +32622,7 @@ interface SocialService extends Instance {
|
|
|
32649
32622
|
* @param recipientId Optional `Player.UserId` of the potential **recipient**, used to check whether the sender can invite that specific recipient.
|
|
32650
32623
|
* @returns Whether the specified player can send an invite.
|
|
32651
32624
|
*/
|
|
32652
|
-
CanSendGameInviteAsync(this: SocialService, player:
|
|
32625
|
+
CanSendGameInviteAsync(this: SocialService, player: Player, recipientId?: number): boolean;
|
|
32653
32626
|
/**
|
|
32654
32627
|
* Fires when a player's call invite state changes.
|
|
32655
32628
|
*
|
|
@@ -32657,7 +32630,7 @@ interface SocialService extends Instance {
|
|
|
32657
32630
|
*
|
|
32658
32631
|
* [Creator Hub](https://create.roblox.com/docs/reference/engine/classes/SocialService#CallInviteStateChanged)
|
|
32659
32632
|
*/
|
|
32660
|
-
readonly CallInviteStateChanged: RBXScriptSignal<(player:
|
|
32633
|
+
readonly CallInviteStateChanged: RBXScriptSignal<(player: Player, inviteState: Enum.InviteState) => void>;
|
|
32661
32634
|
/**
|
|
32662
32635
|
* Fires when a player closes an invite prompt.
|
|
32663
32636
|
*
|
|
@@ -32673,7 +32646,7 @@ interface SocialService extends Instance {
|
|
|
32673
32646
|
*
|
|
32674
32647
|
* [Creator Hub](https://create.roblox.com/docs/reference/engine/classes/SocialService#PhoneBookPromptClosed)
|
|
32675
32648
|
*/
|
|
32676
|
-
readonly PhoneBookPromptClosed: RBXScriptSignal<(player:
|
|
32649
|
+
readonly PhoneBookPromptClosed: RBXScriptSignal<(player: Player) => void>;
|
|
32677
32650
|
/**
|
|
32678
32651
|
* Callback for when a call is placed from the phone book.
|
|
32679
32652
|
*
|
package/include/roblox.d.ts
CHANGED
|
@@ -3319,3 +3319,12 @@ interface UserSubscriptionStatus {
|
|
|
3319
3319
|
interface ExpirationDetails {
|
|
3320
3320
|
ExpirationReason: Enum.SubscriptionExpirationReason;
|
|
3321
3321
|
}
|
|
3322
|
+
|
|
3323
|
+
interface PromptBulkPurchaseFinishedResults {
|
|
3324
|
+
RobuxSpent: number;
|
|
3325
|
+
Items: Array<{
|
|
3326
|
+
type: Enum.MarketplaceProductType;
|
|
3327
|
+
id: string;
|
|
3328
|
+
status: Enum.MarketplaceItemPurchaseStatus;
|
|
3329
|
+
}>;
|
|
3330
|
+
}
|