@rbxts/types 1.0.593 → 1.0.598

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.
@@ -38,6 +38,7 @@ interface Services {
38
38
  DraggerService: DraggerService;
39
39
  EventIngestService: EventIngestService;
40
40
  FaceAnimatorService: FaceAnimatorService;
41
+ FacialAnimationStreamingService: FacialAnimationStreamingService;
41
42
  GamePassService: GamePassService;
42
43
  GroupService: GroupService;
43
44
  GuiService: GuiService;
@@ -57,7 +58,6 @@ interface Services {
57
58
  LodDataService: LodDataService;
58
59
  LogService: LogService;
59
60
  LSPFileSyncService: LSPFileSyncService;
60
- LSPService: LSPService;
61
61
  LuauScriptAnalyzerService: LuauScriptAnalyzerService;
62
62
  MarketplaceService: MarketplaceService;
63
63
  MaterialService: MaterialService;
@@ -76,11 +76,13 @@ interface Services {
76
76
  RemoteDebuggerServer: RemoteDebuggerServer;
77
77
  ReplicatedFirst: ReplicatedFirst;
78
78
  ReplicatedStorage: ReplicatedStorage;
79
+ RtMessagingService: RtMessagingService;
79
80
  RunService: RunService;
80
81
  ScriptChangeService: ScriptChangeService;
81
82
  ScriptCloneWatcher: ScriptCloneWatcher;
82
83
  ScriptCloneWatcherHelper: ScriptCloneWatcherHelper;
83
84
  ScriptContext: ScriptContext;
85
+ ScriptEditorService: ScriptEditorService;
84
86
  ScriptRegistrationService: ScriptRegistrationService;
85
87
  ServerScriptService: ServerScriptService;
86
88
  ServerStorage: ServerStorage;
@@ -303,6 +305,7 @@ interface CreatableInstances {
303
305
  Tool: Tool;
304
306
  Torque: Torque;
305
307
  TorsionSpringConstraint: TorsionSpringConstraint;
308
+ TrackerStreamAnimation: TrackerStreamAnimation;
306
309
  Trail: Trail;
307
310
  TremoloSoundEffect: TremoloSoundEffect;
308
311
  TrussPart: TrussPart;
@@ -390,6 +393,7 @@ interface AbstractInstances {
390
393
 
391
394
  interface Instances extends Services, CreatableInstances, AbstractInstances {
392
395
  AnimationClip: AnimationClip;
396
+ AnimationStreamTrack: AnimationStreamTrack;
393
397
  AnimationTrack: AnimationTrack;
394
398
  BaseWrap: BaseWrap;
395
399
  CatalogPages: CatalogPages;
@@ -447,6 +451,7 @@ interface Instances extends Services, CreatableInstances, AbstractInstances {
447
451
  PlayerScripts: PlayerScripts;
448
452
  PluginManagerInterface: PluginManagerInterface;
449
453
  PoseBase: PoseBase;
454
+ ScriptDocument: ScriptDocument;
450
455
  StackFrame: StackFrame;
451
456
  StandardPages: StandardPages;
452
457
  StarterCharacterScripts: StarterCharacterScripts;
@@ -1690,6 +1695,33 @@ interface AnimationRigData extends Instance {
1690
1695
  readonly _nominal_AnimationRigData: unique symbol;
1691
1696
  }
1692
1697
 
1698
+ interface AnimationStreamTrack extends Instance {
1699
+ /**
1700
+ * **DO NOT USE!**
1701
+ *
1702
+ * This field exists to force TypeScript to recognize this as a nominal type
1703
+ * @hidden
1704
+ * @deprecated
1705
+ */
1706
+ readonly _nominal_AnimationStreamTrack: unique symbol;
1707
+ /**
1708
+ * Tags: Hidden, ReadOnly, NotReplicated
1709
+ */
1710
+ readonly IsPlaying: boolean;
1711
+ /**
1712
+ * Tags: Hidden, NotReplicated
1713
+ */
1714
+ Priority: Enum.AnimationPriority;
1715
+ /**
1716
+ * Tags: Hidden, ReadOnly, NotReplicated
1717
+ */
1718
+ readonly WeightCurrent: number;
1719
+ /**
1720
+ * Tags: Hidden, ReadOnly, NotReplicated
1721
+ */
1722
+ readonly WeightTarget: number;
1723
+ }
1724
+
1693
1725
  /** Controls the playback of an animation on a [Humanoid](https://developer.roblox.com/en-us/api-reference/class/Humanoid) or [AnimationController](https://developer.roblox.com/en-us/api-reference/class/AnimationController). This object cannot be created, instead it is returned by the [Humanoid:LoadAnimation](https://developer.roblox.com/en-us/api-reference/function/Humanoid/LoadAnimation) method. */
1694
1726
  interface AnimationTrack extends Instance {
1695
1727
  /**
@@ -9758,6 +9790,17 @@ interface Texture extends Decal {
9758
9790
  StudsPerTileV: number;
9759
9791
  }
9760
9792
 
9793
+ interface FacialAnimationStreamingService extends Instance {
9794
+ /**
9795
+ * **DO NOT USE!**
9796
+ *
9797
+ * This field exists to force TypeScript to recognize this as a nominal type
9798
+ * @hidden
9799
+ * @deprecated
9800
+ */
9801
+ readonly _nominal_FacialAnimationStreamingService: unique symbol;
9802
+ }
9803
+
9761
9804
  /** The base class for the legacy motor system. */
9762
9805
  interface Feature extends Instance {
9763
9806
  /**
@@ -11313,10 +11356,7 @@ interface CanvasGroup extends GuiObject {
11313
11356
  * @deprecated
11314
11357
  */
11315
11358
  readonly _nominal_CanvasGroup: unique symbol;
11316
- /**
11317
- * Color that applies to all descendants.
11318
- */
11319
- GroupColor: Color3;
11359
+ GroupColor3: Color3;
11320
11360
  /**
11321
11361
  * Transparency that applies to all descendants.
11322
11362
  */
@@ -16175,6 +16215,7 @@ interface ImporterRootSettings extends ImporterBaseSettings {
16175
16215
  readonly FileDimensions: Vector3;
16176
16216
  ImportAsModelAsset: boolean;
16177
16217
  InsertInWorkspace: boolean;
16218
+ InsertWithScenePosition: boolean;
16178
16219
  InvertNegativeFaces: boolean;
16179
16220
  MergeMeshes: boolean;
16180
16221
  /**
@@ -18644,17 +18685,6 @@ interface LSPFileSyncService extends Instance {
18644
18685
  readonly _nominal_LSPFileSyncService: unique symbol;
18645
18686
  }
18646
18687
 
18647
- interface LSPService extends Instance {
18648
- /**
18649
- * **DO NOT USE!**
18650
- *
18651
- * This field exists to force TypeScript to recognize this as a nominal type
18652
- * @hidden
18653
- * @deprecated
18654
- */
18655
- readonly _nominal_LSPService: unique symbol;
18656
- }
18657
-
18658
18688
  interface LanguageService extends Instance {
18659
18689
  /**
18660
18690
  * **DO NOT USE!**
@@ -22839,7 +22869,7 @@ interface BasePart extends PVInstance {
22839
22869
  this: BasePart,
22840
22870
  parts: Array<BasePart>,
22841
22871
  collisionfidelity?: CastsToEnum<Enum.CollisionFidelity>,
22842
- ): UnionOperation;
22872
+ ): UnionOperation | undefined;
22843
22873
  /**
22844
22874
  * This is a server-only function that uses [CSG](https://developer.roblox.com/en-us/articles/3d-modeling-with-parts) to combine the geometry of the calling [BasePart](https://developer.roblox.com/en-us/api-reference/class/BasePart) with a table of other BaseParts.
22845
22875
  * The following properties from the calling part will be applied to the resulting part:
@@ -27654,6 +27684,17 @@ interface RotationCurve extends Instance {
27654
27684
  SetKeys(this: RotationCurve, keys: Array<any>): number;
27655
27685
  }
27656
27686
 
27687
+ interface RtMessagingService extends Instance {
27688
+ /**
27689
+ * **DO NOT USE!**
27690
+ *
27691
+ * This field exists to force TypeScript to recognize this as a nominal type
27692
+ * @hidden
27693
+ * @deprecated
27694
+ */
27695
+ readonly _nominal_RtMessagingService: unique symbol;
27696
+ }
27697
+
27657
27698
  /** **RunService** contains methods and events for time-management as well as for managing the context in which a game or script is running. Methods like [IsClient](https://developer.roblox.com/en-us/api-reference/function/RunService/IsClient), [IsServer](https://developer.roblox.com/en-us/api-reference/function/RunService/IsServer), [IsStudio](https://developer.roblox.com/en-us/api-reference/function/RunService/IsStudio), can help you determine under what context code is running. These methods are useful for ModuleScripts that may be required by both client and server scripts. Furthermore, [IsStudio](https://developer.roblox.com/en-us/api-reference/function/RunService/IsStudio) can be used to add special behaviors for in-studio testing.
27658
27699
  *
27659
27700
  * RunService also houses events that allow your code to adhere to Roblox's frame-by-frame loop, such as [Stepped](https://developer.roblox.com/en-us/api-reference/event/RunService/Stepped), [Heartbeat](https://developer.roblox.com/en-us/api-reference/event/RunService/Heartbeat) and [RenderStepped](https://developer.roblox.com/en-us/api-reference/event/RunService/RenderStepped). Selecting the proper event to use for any case is important, so you should read [Task Scheduler](https://developer.roblox.com/en-us/articles/task-scheduler) to make an informed decision.
@@ -28063,6 +28104,28 @@ interface ScriptContext extends Instance {
28063
28104
  readonly Error: RBXScriptSignal<(message: string, stackTrace: string, script?: LuaSourceContainer) => void>;
28064
28105
  }
28065
28106
 
28107
+ interface ScriptDocument extends Instance {
28108
+ /**
28109
+ * **DO NOT USE!**
28110
+ *
28111
+ * This field exists to force TypeScript to recognize this as a nominal type
28112
+ * @hidden
28113
+ * @deprecated
28114
+ */
28115
+ readonly _nominal_ScriptDocument: unique symbol;
28116
+ }
28117
+
28118
+ interface ScriptEditorService extends Instance {
28119
+ /**
28120
+ * **DO NOT USE!**
28121
+ *
28122
+ * This field exists to force TypeScript to recognize this as a nominal type
28123
+ * @hidden
28124
+ * @deprecated
28125
+ */
28126
+ readonly _nominal_ScriptEditorService: unique symbol;
28127
+ }
28128
+
28066
28129
  interface ScriptRegistrationService extends Instance {
28067
28130
  /**
28068
28131
  * **DO NOT USE!**
@@ -31449,11 +31512,14 @@ interface TextChannel extends Instance {
31449
31512
  */
31450
31513
  readonly _nominal_TextChannel: unique symbol;
31451
31514
  DisplaySystemMessage(this: TextChannel, systemMessage: string, metadata?: string): TextChatMessage;
31452
- SendAsync(this: TextChannel, message: string, metadata?: string): TextChatMessage;
31453
31515
  /**
31454
31516
  * Tags: Yields
31455
31517
  */
31456
31518
  AddUserAsync(this: TextChannel, userId: number): unknown;
31519
+ /**
31520
+ * Tags: Yields
31521
+ */
31522
+ SendAsync(this: TextChannel, message: string, metadata?: string): TextChatMessage;
31457
31523
  readonly MessageReceived: RBXScriptSignal<(incomingMessage: TextChatMessage) => void>;
31458
31524
  OnIncomingMessage: (message: TextChatMessage) => void;
31459
31525
  }
@@ -31741,6 +31807,17 @@ interface TracerService extends Instance {
31741
31807
  readonly _nominal_TracerService: unique symbol;
31742
31808
  }
31743
31809
 
31810
+ interface TrackerStreamAnimation extends Instance {
31811
+ /**
31812
+ * **DO NOT USE!**
31813
+ *
31814
+ * This field exists to force TypeScript to recognize this as a nominal type
31815
+ * @hidden
31816
+ * @deprecated
31817
+ */
31818
+ readonly _nominal_TrackerStreamAnimation: unique symbol;
31819
+ }
31820
+
31744
31821
  /** The Trail object is used to create a trail like an effect between two points. As the points move through space a texture is drawn on the plane the points define. This is commonly used to create effects to help visualize movements like tracer trails behind projectiles, footprints, tire tracks, and many other similar effects.
31745
31822
  *
31746
31823
  * ![A diagram explaining the Trail object.](https://developer.roblox.com/assets/bltf78765806231bc92/TrailSegments2.png)
@@ -3610,7 +3610,6 @@ interface StudioService extends Instance {
3610
3610
  * Returns the studio user's userId if they're logged in, otherwise returns 0.
3611
3611
  */
3612
3612
  GetUserId(this: StudioService): number;
3613
- GetUserIsInTeamCreateToggleRamp(this: StudioService): boolean;
3614
3613
  GizmoRaycast(this: StudioService, origin: Vector3, direction: Vector3, raycastParams?: RaycastParams): RaycastResult;
3615
3614
  HasInternalPermission(this: StudioService): boolean;
3616
3615
  IsPluginInstalled(this: StudioService, assetId: number): boolean;
@@ -3346,6 +3346,14 @@ declare namespace Enum {
3346
3346
 
3347
3347
  export const DisconnectModeratedGame: DisconnectModeratedGame;
3348
3348
 
3349
+ export interface DisconnectOutOfMemoryExitContinue {
3350
+ Name: "DisconnectOutOfMemoryExitContinue";
3351
+ Value: 288;
3352
+ EnumType: EnumType<ConnectionError>;
3353
+ }
3354
+
3355
+ export const DisconnectOutOfMemoryExitContinue: DisconnectOutOfMemoryExitContinue;
3356
+
3349
3357
  export interface PlacelaunchErrors {
3350
3358
  Name: "PlacelaunchErrors";
3351
3359
  Value: 512;
@@ -3532,7 +3540,7 @@ declare namespace Enum {
3532
3540
 
3533
3541
  export function GetEnumItems(this: defined): Array<ConnectionError>
3534
3542
  }
3535
- export type ConnectionError = ConnectionError.OK | ConnectionError.DisconnectErrors | ConnectionError.DisconnectBadhash | ConnectionError.DisconnectSecurityKeyMismatch | ConnectionError.DisconnectNewSecurityKeyMismatch | ConnectionError.DisconnectProtocolMismatch | ConnectionError.DisconnectReceivePacketError | ConnectionError.DisconnectReceivePacketStreamError | ConnectionError.DisconnectSendPacketError | ConnectionError.DisconnectIllegalTeleport | ConnectionError.DisconnectDuplicatePlayer | ConnectionError.DisconnectDuplicateTicket | ConnectionError.DisconnectTimeout | ConnectionError.DisconnectLuaKick | ConnectionError.DisconnectOnRemoteSysStats | ConnectionError.DisconnectHashTimeout | ConnectionError.DisconnectCloudEditKick | ConnectionError.DisconnectPlayerless | ConnectionError.DisconnectEvicted | ConnectionError.DisconnectDevMaintenance | ConnectionError.DisconnectRobloxMaintenance | ConnectionError.DisconnectRejoin | ConnectionError.DisconnectConnectionLost | ConnectionError.DisconnectIdle | ConnectionError.DisconnectRaknetErrors | ConnectionError.DisconnectWrongVersion | ConnectionError.DisconnectBySecurityPolicy | ConnectionError.DisconnectBlockedIP | ConnectionError.DisconnectClientFailure | ConnectionError.DisconnectClientRequest | ConnectionError.DisconnectOutOfMemory | ConnectionError.DisconnectModeratedGame | ConnectionError.PlacelaunchErrors | ConnectionError.PlacelaunchDisabled | ConnectionError.PlacelaunchError | ConnectionError.PlacelaunchGameEnded | ConnectionError.PlacelaunchGameFull | ConnectionError.PlacelaunchUserLeft | ConnectionError.PlacelaunchRestricted | ConnectionError.PlacelaunchUnauthorized | ConnectionError.PlacelaunchFlooded | ConnectionError.PlacelaunchHashExpired | ConnectionError.PlacelaunchHashException | ConnectionError.PlacelaunchPartyCannotFit | ConnectionError.PlacelaunchHttpError | ConnectionError.PlacelaunchCustomMessage | ConnectionError.PlacelaunchOtherError | ConnectionError.TeleportErrors | ConnectionError.TeleportFailure | ConnectionError.TeleportGameNotFound | ConnectionError.TeleportGameEnded | ConnectionError.TeleportGameFull | ConnectionError.TeleportUnauthorized | ConnectionError.TeleportFlooded | ConnectionError.TeleportIsTeleporting;
3543
+ export type ConnectionError = ConnectionError.OK | ConnectionError.DisconnectErrors | ConnectionError.DisconnectBadhash | ConnectionError.DisconnectSecurityKeyMismatch | ConnectionError.DisconnectNewSecurityKeyMismatch | ConnectionError.DisconnectProtocolMismatch | ConnectionError.DisconnectReceivePacketError | ConnectionError.DisconnectReceivePacketStreamError | ConnectionError.DisconnectSendPacketError | ConnectionError.DisconnectIllegalTeleport | ConnectionError.DisconnectDuplicatePlayer | ConnectionError.DisconnectDuplicateTicket | ConnectionError.DisconnectTimeout | ConnectionError.DisconnectLuaKick | ConnectionError.DisconnectOnRemoteSysStats | ConnectionError.DisconnectHashTimeout | ConnectionError.DisconnectCloudEditKick | ConnectionError.DisconnectPlayerless | ConnectionError.DisconnectEvicted | ConnectionError.DisconnectDevMaintenance | ConnectionError.DisconnectRobloxMaintenance | ConnectionError.DisconnectRejoin | ConnectionError.DisconnectConnectionLost | ConnectionError.DisconnectIdle | ConnectionError.DisconnectRaknetErrors | ConnectionError.DisconnectWrongVersion | ConnectionError.DisconnectBySecurityPolicy | ConnectionError.DisconnectBlockedIP | ConnectionError.DisconnectClientFailure | ConnectionError.DisconnectClientRequest | ConnectionError.DisconnectOutOfMemory | ConnectionError.DisconnectModeratedGame | ConnectionError.DisconnectOutOfMemoryExitContinue | ConnectionError.PlacelaunchErrors | ConnectionError.PlacelaunchDisabled | ConnectionError.PlacelaunchError | ConnectionError.PlacelaunchGameEnded | ConnectionError.PlacelaunchGameFull | ConnectionError.PlacelaunchUserLeft | ConnectionError.PlacelaunchRestricted | ConnectionError.PlacelaunchUnauthorized | ConnectionError.PlacelaunchFlooded | ConnectionError.PlacelaunchHashExpired | ConnectionError.PlacelaunchHashException | ConnectionError.PlacelaunchPartyCannotFit | ConnectionError.PlacelaunchHttpError | ConnectionError.PlacelaunchCustomMessage | ConnectionError.PlacelaunchOtherError | ConnectionError.TeleportErrors | ConnectionError.TeleportFailure | ConnectionError.TeleportGameNotFound | ConnectionError.TeleportGameEnded | ConnectionError.TeleportGameFull | ConnectionError.TeleportUnauthorized | ConnectionError.TeleportFlooded | ConnectionError.TeleportIsTeleporting;
3536
3544
  export namespace ConnectionState {
3537
3545
  export interface Connected {
3538
3546
  Name: "Connected";
package/include/lua.d.ts CHANGED
@@ -702,8 +702,13 @@ declare namespace table {
702
702
  * (so that `not comp(list[i+1],list[i])` will be true after the sort).
703
703
  */
704
704
  function sort<T>(t: Array<T>, comp?: (a: T, b: T) => boolean): void;
705
- /** Makes the table read-only and prohibits all further modifications */
706
- function freeze(t: object): void;
705
+ /**
706
+ * Makes the table read-only and prohibits all further modifications.
707
+ *
708
+ * This freezing effect is shallow, which means that you can write to a table within a frozen table.
709
+ * To deep freeze a table, call this function recursively on all of the descending tables.
710
+ */
711
+ function freeze<T extends object>(t: T): Readonly<T>;
707
712
  /** Returns whether or not `t` is frozen */
708
713
  function isfrozen<T extends object>(t: T): t is Readonly<T>;
709
714
 
@@ -740,7 +745,7 @@ declare namespace coroutine {
740
745
  function running(): thread;
741
746
 
742
747
  /** Returns the status of coroutine co, as a string: 'running', if the coroutine is running (that is, it called status); 'suspended', if the coroutine is suspended in a call to yield, or if it has not started running yet; 'normal' if the coroutine is active but not running (that is, it has resumed another coroutine); and 'dead' if the coroutine has finished its body function, or if it has stopped with an error. */
743
- function status(co: thread): string;
748
+ function status(co: thread): "running" | "suspended" | "normal" | "dead";
744
749
 
745
750
  /** Creates a new coroutine, with body f. f must be a Lua function. Returns a function that resumes the coroutine each time it is called. Any arguments passed to the function behave as the extra arguments to resume. Returns the same values returned by resume, except the first boolean. In case of error, propagates the error. */
746
751
  function wrap<T extends Callback>(f: T): T;
@@ -748,8 +753,18 @@ declare namespace coroutine {
748
753
  /** Suspends the execution of the calling coroutine. Any arguments to yield are passed as extra results to resume. */
749
754
  function yield(...params: Array<unknown>): LuaTuple<Array<unknown>>;
750
755
 
751
- /** Takes a suspended coroutine and makes it "dead" (non-runnable). */
752
- function close(co: thread): void;
756
+ /**
757
+ * Takes a suspended coroutine and makes it "dead" (non-runnable).
758
+ * This function returns `true` unless the coroutine is in an error state, in which case it returns `false` and the error message.
759
+ * A coroutine that is currently running cannot be closed. A coroutine cannot be resumed after it is closed.
760
+ */
761
+ function close(co: thread): LuaTuple<[success: false, errorValue: unknown] | [success: true, errorValue: never]>;
762
+
763
+ /**
764
+ * Returns `true` if the coroutine this function is called within can safely yield.
765
+ * Yielding a coroutine inside metamethods or C functions is prohibited, with the exception of `pcall` and `xpcall`.
766
+ */
767
+ function isyieldable(): boolean;
753
768
  }
754
769
 
755
770
  declare function next<T extends ReadonlyArray<any>>(
@@ -347,6 +347,8 @@ interface FriendOnlineInfoBase {
347
347
  VisitorId: number;
348
348
  /** The user name of the friend. */
349
349
  UserName: string;
350
+ /** The display name of the friend. */
351
+ DisplayName: string;
350
352
  /** When the user was last online. */
351
353
  LastOnline: string;
352
354
  /** If the friend is currently online. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/types",
3
- "version": "1.0.593",
3
+ "version": "1.0.598",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },