@rbxts/types 1.0.791 → 1.0.793

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.
@@ -68,6 +68,7 @@ interface Services {
68
68
  GroupService: GroupService;
69
69
  GuiService: GuiService;
70
70
  HapticService: HapticService;
71
+ HeatmapService: HeatmapService;
71
72
  HeightmapImporterService: HeightmapImporterService;
72
73
  HttpService: HttpService;
73
74
  ILegacyStudioBridge: ILegacyStudioBridge;
@@ -2974,6 +2975,7 @@ interface AudioEmitter extends Instance {
2974
2975
  * Tags: CustomLuaState
2975
2976
  */
2976
2977
  GetDistanceAttenuation(this: AudioEmitter): object;
2978
+ GetInteractingListeners(this: AudioEmitter): unknown;
2977
2979
  /**
2978
2980
  * Tags: CustomLuaState
2979
2981
  */
@@ -3067,6 +3069,7 @@ interface AudioListener extends Instance {
3067
3069
  readonly _nominal_AudioListener: unique symbol;
3068
3070
  AudioInteractionGroup: string;
3069
3071
  GetConnectedWires(this: AudioListener, pin: string): unknown;
3072
+ GetInteractingEmitters(this: AudioListener): unknown;
3070
3073
  }
3071
3074
 
3072
3075
  interface AudioPitchShifter extends Instance {
@@ -15952,6 +15955,17 @@ interface HapticService extends Instance {
15952
15955
  ): void;
15953
15956
  }
15954
15957
 
15958
+ interface HeatmapService extends Instance {
15959
+ /**
15960
+ * **DO NOT USE!**
15961
+ *
15962
+ * This field exists to force TypeScript to recognize this as a nominal type
15963
+ * @hidden
15964
+ * @deprecated
15965
+ */
15966
+ readonly _nominal_HeatmapService: unique symbol;
15967
+ }
15968
+
15955
15969
  interface HeightmapImporterService extends Instance {
15956
15970
  /**
15957
15971
  * **DO NOT USE!**
@@ -22740,6 +22754,7 @@ interface MarketplaceService extends Instance {
22740
22754
  * Used to prompt a user to purchase a bundle with the given bundleId
22741
22755
  */
22742
22756
  PromptBundlePurchase(this: MarketplaceService, player: Player, bundleId: number): void;
22757
+ PromptCancelSubscription(this: MarketplaceService, user: Player, subscriptionId: string): void;
22743
22758
  /**
22744
22759
  * Used to prompt a user to purchase a game pass with the given assetId.
22745
22760
  */
@@ -35848,6 +35863,7 @@ interface TweenService extends Instance {
35848
35863
  * The provided alpha value is clamped between 0 and 1.
35849
35864
  */
35850
35865
  GetValue(this: TweenService, alpha: number, easingStyle: CastsToEnum<Enum.EasingStyle>, easingDirection: CastsToEnum<Enum.EasingDirection>): number;
35866
+ SmoothDamp(this: TweenService, current: unknown, target: unknown, velocity: unknown, smoothTime: number, maxSpeed: number | undefined, dt: number | undefined): LuaTuple<[unknown, unknown]>;
35851
35867
  }
35852
35868
 
35853
35869
  interface UGCAvatarService extends Instance {
@@ -4182,6 +4182,59 @@ declare namespace Enum {
4182
4182
  }
4183
4183
  export type ClientAnimatorThrottlingMode = ClientAnimatorThrottlingMode.Default | ClientAnimatorThrottlingMode.Disabled | ClientAnimatorThrottlingMode.Enabled;
4184
4184
 
4185
+ export namespace CloseReason {
4186
+ export interface Unknown extends globalThis.EnumItem {
4187
+ Name: "Unknown";
4188
+ Value: 0;
4189
+ EnumType: typeof globalThis.Enum.CloseReason;
4190
+ }
4191
+
4192
+ export const Unknown: Unknown;
4193
+
4194
+ export interface RobloxMaintenance extends globalThis.EnumItem {
4195
+ Name: "RobloxMaintenance";
4196
+ Value: 1;
4197
+ EnumType: typeof globalThis.Enum.CloseReason;
4198
+ }
4199
+
4200
+ export const RobloxMaintenance: RobloxMaintenance;
4201
+
4202
+ export interface DeveloperShutdown extends globalThis.EnumItem {
4203
+ Name: "DeveloperShutdown";
4204
+ Value: 2;
4205
+ EnumType: typeof globalThis.Enum.CloseReason;
4206
+ }
4207
+
4208
+ export const DeveloperShutdown: DeveloperShutdown;
4209
+
4210
+ export interface DeveloperUpdate extends globalThis.EnumItem {
4211
+ Name: "DeveloperUpdate";
4212
+ Value: 3;
4213
+ EnumType: typeof globalThis.Enum.CloseReason;
4214
+ }
4215
+
4216
+ export const DeveloperUpdate: DeveloperUpdate;
4217
+
4218
+ export interface ServerEmpty extends globalThis.EnumItem {
4219
+ Name: "ServerEmpty";
4220
+ Value: 4;
4221
+ EnumType: typeof globalThis.Enum.CloseReason;
4222
+ }
4223
+
4224
+ export const ServerEmpty: ServerEmpty;
4225
+
4226
+ export interface OutOfMemory extends globalThis.EnumItem {
4227
+ Name: "OutOfMemory";
4228
+ Value: 5;
4229
+ EnumType: typeof globalThis.Enum.CloseReason;
4230
+ }
4231
+
4232
+ export const OutOfMemory: OutOfMemory;
4233
+
4234
+ export function GetEnumItems(this: globalThis.Enum): Array<globalThis.Enum.CloseReason>;
4235
+ }
4236
+ export type CloseReason = CloseReason.Unknown | CloseReason.RobloxMaintenance | CloseReason.DeveloperShutdown | CloseReason.DeveloperUpdate | CloseReason.ServerEmpty | CloseReason.OutOfMemory;
4237
+
4185
4238
  export namespace CollaboratorStatus {
4186
4239
  export interface None extends globalThis.EnumItem {
4187
4240
  Name: "None";
@@ -12164,6 +12217,35 @@ declare namespace Enum {
12164
12217
  }
12165
12218
  export type LoadDynamicHeads = LoadDynamicHeads.Default | LoadDynamicHeads.Disabled | LoadDynamicHeads.Enabled;
12166
12219
 
12220
+ export namespace LocationType {
12221
+ export interface Character extends globalThis.EnumItem {
12222
+ Name: "Character";
12223
+ Value: 0;
12224
+ EnumType: typeof globalThis.Enum.LocationType;
12225
+ }
12226
+
12227
+ export const Character: Character;
12228
+
12229
+ export interface Camera extends globalThis.EnumItem {
12230
+ Name: "Camera";
12231
+ Value: 1;
12232
+ EnumType: typeof globalThis.Enum.LocationType;
12233
+ }
12234
+
12235
+ export const Camera: Camera;
12236
+
12237
+ export interface ObjectPosition extends globalThis.EnumItem {
12238
+ Name: "ObjectPosition";
12239
+ Value: 2;
12240
+ EnumType: typeof globalThis.Enum.LocationType;
12241
+ }
12242
+
12243
+ export const ObjectPosition: ObjectPosition;
12244
+
12245
+ export function GetEnumItems(this: globalThis.Enum): Array<globalThis.Enum.LocationType>;
12246
+ }
12247
+ export type LocationType = LocationType.Character | LocationType.Camera | LocationType.ObjectPosition;
12248
+
12167
12249
  export namespace MarketplaceBulkPurchasePromptStatus {
12168
12250
  export interface Completed extends globalThis.EnumItem {
12169
12251
  Name: "Completed";
@@ -16841,9 +16923,49 @@ declare namespace Enum {
16841
16923
 
16842
16924
  export const Physics: Physics;
16843
16925
 
16926
+ export interface UI extends globalThis.EnumItem {
16927
+ Name: "UI";
16928
+ Value: 12;
16929
+ EnumType: typeof globalThis.Enum.SecurityCapability;
16930
+ }
16931
+
16932
+ export const UI: UI;
16933
+
16934
+ export interface CSG extends globalThis.EnumItem {
16935
+ Name: "CSG";
16936
+ Value: 13;
16937
+ EnumType: typeof globalThis.Enum.SecurityCapability;
16938
+ }
16939
+
16940
+ export const CSG: CSG;
16941
+
16942
+ export interface Chat extends globalThis.EnumItem {
16943
+ Name: "Chat";
16944
+ Value: 14;
16945
+ EnumType: typeof globalThis.Enum.SecurityCapability;
16946
+ }
16947
+
16948
+ export const Chat: Chat;
16949
+
16950
+ export interface Animation extends globalThis.EnumItem {
16951
+ Name: "Animation";
16952
+ Value: 15;
16953
+ EnumType: typeof globalThis.Enum.SecurityCapability;
16954
+ }
16955
+
16956
+ export const Animation: Animation;
16957
+
16958
+ export interface Avatar extends globalThis.EnumItem {
16959
+ Name: "Avatar";
16960
+ Value: 16;
16961
+ EnumType: typeof globalThis.Enum.SecurityCapability;
16962
+ }
16963
+
16964
+ export const Avatar: Avatar;
16965
+
16844
16966
  export function GetEnumItems(this: globalThis.Enum): Array<globalThis.Enum.SecurityCapability>;
16845
16967
  }
16846
- export type SecurityCapability = SecurityCapability.RunClientScript | SecurityCapability.RunServerScript | SecurityCapability.AccessOutsideWrite | SecurityCapability.AssetRequire | SecurityCapability.LoadString | SecurityCapability.ScriptGlobals | SecurityCapability.CreateInstances | SecurityCapability.Basic | SecurityCapability.Audio | SecurityCapability.DataStore | SecurityCapability.Network | SecurityCapability.Physics;
16968
+ export type SecurityCapability = SecurityCapability.RunClientScript | SecurityCapability.RunServerScript | SecurityCapability.AccessOutsideWrite | SecurityCapability.AssetRequire | SecurityCapability.LoadString | SecurityCapability.ScriptGlobals | SecurityCapability.CreateInstances | SecurityCapability.Basic | SecurityCapability.Audio | SecurityCapability.DataStore | SecurityCapability.Network | SecurityCapability.Physics | SecurityCapability.UI | SecurityCapability.CSG | SecurityCapability.Chat | SecurityCapability.Animation | SecurityCapability.Avatar;
16847
16969
 
16848
16970
  export namespace SelectionBehavior {
16849
16971
  export interface Escape extends globalThis.EnumItem {
@@ -810,6 +810,16 @@ interface InstanceConstructor {
810
810
  * You can read [this thread on the developer forum](https://devforum.roblox.com/t/psa-dont-use-instance-new-with-parent-argument/30296) for more information.
811
811
  */
812
812
  new <T extends keyof CreatableInstances>(className: T, parent?: Instance): CreatableInstances[T];
813
+ /**
814
+ * Creates a new object with the same type and property values as an existing object. In most cases using `Instance:Clone()` is more appropriate, but this constructor is useful when implementing low‑level libraries or systems.
815
+ *
816
+ * There are two behavioral differences between this constructor and the `Instance:Clone()` method:
817
+ * - This constructor will not copy any of the descendant `Instances` parented to the existing object.
818
+ * - This constructor will return a new object even if the existing object had `Instance.Archivable` set to `false`.
819
+ */
820
+ fromExisting: <T extends keyof CreatableInstances>(
821
+ existingInstance: CreatableInstances[T],
822
+ ) => CreatableInstances[T];
813
823
  }
814
824
 
815
825
  declare const Instance: InstanceConstructor;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/types",
3
- "version": "1.0.791",
3
+ "version": "1.0.793",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },