@rbxts/types 1.0.592 → 1.0.599
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;
|
|
@@ -1086,7 +1091,9 @@ interface Instance {
|
|
|
1086
1091
|
*/
|
|
1087
1092
|
readonly DescendantRemoving: RBXScriptSignal<(descendant: Instance) => void>;
|
|
1088
1093
|
/**
|
|
1089
|
-
*
|
|
1094
|
+
* The Destroying event fires immediately before the Instance or one of its ancestors is destroyed.
|
|
1095
|
+
*
|
|
1096
|
+
* The Instance will never be deleted from memory while a connected function is still using it. However, if the function yields at any point, the Instance and its descendants will be parented to `nil`.
|
|
1090
1097
|
*/
|
|
1091
1098
|
readonly Destroying: RBXScriptSignal<() => void>;
|
|
1092
1099
|
}
|
|
@@ -1690,6 +1697,33 @@ interface AnimationRigData extends Instance {
|
|
|
1690
1697
|
readonly _nominal_AnimationRigData: unique symbol;
|
|
1691
1698
|
}
|
|
1692
1699
|
|
|
1700
|
+
interface AnimationStreamTrack extends Instance {
|
|
1701
|
+
/**
|
|
1702
|
+
* **DO NOT USE!**
|
|
1703
|
+
*
|
|
1704
|
+
* This field exists to force TypeScript to recognize this as a nominal type
|
|
1705
|
+
* @hidden
|
|
1706
|
+
* @deprecated
|
|
1707
|
+
*/
|
|
1708
|
+
readonly _nominal_AnimationStreamTrack: unique symbol;
|
|
1709
|
+
/**
|
|
1710
|
+
* Tags: Hidden, ReadOnly, NotReplicated
|
|
1711
|
+
*/
|
|
1712
|
+
readonly IsPlaying: boolean;
|
|
1713
|
+
/**
|
|
1714
|
+
* Tags: Hidden, NotReplicated
|
|
1715
|
+
*/
|
|
1716
|
+
Priority: Enum.AnimationPriority;
|
|
1717
|
+
/**
|
|
1718
|
+
* Tags: Hidden, ReadOnly, NotReplicated
|
|
1719
|
+
*/
|
|
1720
|
+
readonly WeightCurrent: number;
|
|
1721
|
+
/**
|
|
1722
|
+
* Tags: Hidden, ReadOnly, NotReplicated
|
|
1723
|
+
*/
|
|
1724
|
+
readonly WeightTarget: number;
|
|
1725
|
+
}
|
|
1726
|
+
|
|
1693
1727
|
/** 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
1728
|
interface AnimationTrack extends Instance {
|
|
1695
1729
|
/**
|
|
@@ -9758,6 +9792,17 @@ interface Texture extends Decal {
|
|
|
9758
9792
|
StudsPerTileV: number;
|
|
9759
9793
|
}
|
|
9760
9794
|
|
|
9795
|
+
interface FacialAnimationStreamingService extends Instance {
|
|
9796
|
+
/**
|
|
9797
|
+
* **DO NOT USE!**
|
|
9798
|
+
*
|
|
9799
|
+
* This field exists to force TypeScript to recognize this as a nominal type
|
|
9800
|
+
* @hidden
|
|
9801
|
+
* @deprecated
|
|
9802
|
+
*/
|
|
9803
|
+
readonly _nominal_FacialAnimationStreamingService: unique symbol;
|
|
9804
|
+
}
|
|
9805
|
+
|
|
9761
9806
|
/** The base class for the legacy motor system. */
|
|
9762
9807
|
interface Feature extends Instance {
|
|
9763
9808
|
/**
|
|
@@ -11313,10 +11358,7 @@ interface CanvasGroup extends GuiObject {
|
|
|
11313
11358
|
* @deprecated
|
|
11314
11359
|
*/
|
|
11315
11360
|
readonly _nominal_CanvasGroup: unique symbol;
|
|
11316
|
-
|
|
11317
|
-
* Color that applies to all descendants.
|
|
11318
|
-
*/
|
|
11319
|
-
GroupColor: Color3;
|
|
11361
|
+
GroupColor3: Color3;
|
|
11320
11362
|
/**
|
|
11321
11363
|
* Transparency that applies to all descendants.
|
|
11322
11364
|
*/
|
|
@@ -16175,6 +16217,7 @@ interface ImporterRootSettings extends ImporterBaseSettings {
|
|
|
16175
16217
|
readonly FileDimensions: Vector3;
|
|
16176
16218
|
ImportAsModelAsset: boolean;
|
|
16177
16219
|
InsertInWorkspace: boolean;
|
|
16220
|
+
InsertWithScenePosition: boolean;
|
|
16178
16221
|
InvertNegativeFaces: boolean;
|
|
16179
16222
|
MergeMeshes: boolean;
|
|
16180
16223
|
/**
|
|
@@ -18644,17 +18687,6 @@ interface LSPFileSyncService extends Instance {
|
|
|
18644
18687
|
readonly _nominal_LSPFileSyncService: unique symbol;
|
|
18645
18688
|
}
|
|
18646
18689
|
|
|
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
18690
|
interface LanguageService extends Instance {
|
|
18659
18691
|
/**
|
|
18660
18692
|
* **DO NOT USE!**
|
|
@@ -22839,7 +22871,7 @@ interface BasePart extends PVInstance {
|
|
|
22839
22871
|
this: BasePart,
|
|
22840
22872
|
parts: Array<BasePart>,
|
|
22841
22873
|
collisionfidelity?: CastsToEnum<Enum.CollisionFidelity>,
|
|
22842
|
-
): UnionOperation;
|
|
22874
|
+
): UnionOperation | undefined;
|
|
22843
22875
|
/**
|
|
22844
22876
|
* 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
22877
|
* The following properties from the calling part will be applied to the resulting part:
|
|
@@ -26792,11 +26824,11 @@ interface Players extends Instance {
|
|
|
26792
26824
|
* local Players = game:GetService("Players")
|
|
26793
26825
|
*
|
|
26794
26826
|
* Players.PlayerAdded:Connect(function(player)
|
|
26795
|
-
* print(player.Name
|
|
26827
|
+
* print(player.Name .. " joined the game!")
|
|
26796
26828
|
* end)
|
|
26797
26829
|
*
|
|
26798
26830
|
* Players.PlayerRemoving:Connect(function(player)
|
|
26799
|
-
* print(player.Name
|
|
26831
|
+
* print(player.Name .. " left the game!")
|
|
26800
26832
|
* end)
|
|
26801
26833
|
*
|
|
26802
26834
|
* If you want to track when a player's character is added or removed from the game, such as when a player respawns or dies, you can use the [Player.CharacterAdded](https://developer.roblox.com/en-us/api-reference/event/Player/CharacterAdded) and [Player.CharacterRemoving](https://developer.roblox.com/en-us/api-reference/event/Player/CharacterRemoving) functions.
|
|
@@ -27654,6 +27686,17 @@ interface RotationCurve extends Instance {
|
|
|
27654
27686
|
SetKeys(this: RotationCurve, keys: Array<any>): number;
|
|
27655
27687
|
}
|
|
27656
27688
|
|
|
27689
|
+
interface RtMessagingService extends Instance {
|
|
27690
|
+
/**
|
|
27691
|
+
* **DO NOT USE!**
|
|
27692
|
+
*
|
|
27693
|
+
* This field exists to force TypeScript to recognize this as a nominal type
|
|
27694
|
+
* @hidden
|
|
27695
|
+
* @deprecated
|
|
27696
|
+
*/
|
|
27697
|
+
readonly _nominal_RtMessagingService: unique symbol;
|
|
27698
|
+
}
|
|
27699
|
+
|
|
27657
27700
|
/** **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
27701
|
*
|
|
27659
27702
|
* 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 +28106,28 @@ interface ScriptContext extends Instance {
|
|
|
28063
28106
|
readonly Error: RBXScriptSignal<(message: string, stackTrace: string, script?: LuaSourceContainer) => void>;
|
|
28064
28107
|
}
|
|
28065
28108
|
|
|
28109
|
+
interface ScriptDocument extends Instance {
|
|
28110
|
+
/**
|
|
28111
|
+
* **DO NOT USE!**
|
|
28112
|
+
*
|
|
28113
|
+
* This field exists to force TypeScript to recognize this as a nominal type
|
|
28114
|
+
* @hidden
|
|
28115
|
+
* @deprecated
|
|
28116
|
+
*/
|
|
28117
|
+
readonly _nominal_ScriptDocument: unique symbol;
|
|
28118
|
+
}
|
|
28119
|
+
|
|
28120
|
+
interface ScriptEditorService extends Instance {
|
|
28121
|
+
/**
|
|
28122
|
+
* **DO NOT USE!**
|
|
28123
|
+
*
|
|
28124
|
+
* This field exists to force TypeScript to recognize this as a nominal type
|
|
28125
|
+
* @hidden
|
|
28126
|
+
* @deprecated
|
|
28127
|
+
*/
|
|
28128
|
+
readonly _nominal_ScriptEditorService: unique symbol;
|
|
28129
|
+
}
|
|
28130
|
+
|
|
28066
28131
|
interface ScriptRegistrationService extends Instance {
|
|
28067
28132
|
/**
|
|
28068
28133
|
* **DO NOT USE!**
|
|
@@ -31449,11 +31514,14 @@ interface TextChannel extends Instance {
|
|
|
31449
31514
|
*/
|
|
31450
31515
|
readonly _nominal_TextChannel: unique symbol;
|
|
31451
31516
|
DisplaySystemMessage(this: TextChannel, systemMessage: string, metadata?: string): TextChatMessage;
|
|
31452
|
-
SendAsync(this: TextChannel, message: string, metadata?: string): TextChatMessage;
|
|
31453
31517
|
/**
|
|
31454
31518
|
* Tags: Yields
|
|
31455
31519
|
*/
|
|
31456
31520
|
AddUserAsync(this: TextChannel, userId: number): unknown;
|
|
31521
|
+
/**
|
|
31522
|
+
* Tags: Yields
|
|
31523
|
+
*/
|
|
31524
|
+
SendAsync(this: TextChannel, message: string, metadata?: string): TextChatMessage;
|
|
31457
31525
|
readonly MessageReceived: RBXScriptSignal<(incomingMessage: TextChatMessage) => void>;
|
|
31458
31526
|
OnIncomingMessage: (message: TextChatMessage) => void;
|
|
31459
31527
|
}
|
|
@@ -31741,6 +31809,17 @@ interface TracerService extends Instance {
|
|
|
31741
31809
|
readonly _nominal_TracerService: unique symbol;
|
|
31742
31810
|
}
|
|
31743
31811
|
|
|
31812
|
+
interface TrackerStreamAnimation extends Instance {
|
|
31813
|
+
/**
|
|
31814
|
+
* **DO NOT USE!**
|
|
31815
|
+
*
|
|
31816
|
+
* This field exists to force TypeScript to recognize this as a nominal type
|
|
31817
|
+
* @hidden
|
|
31818
|
+
* @deprecated
|
|
31819
|
+
*/
|
|
31820
|
+
readonly _nominal_TrackerStreamAnimation: unique symbol;
|
|
31821
|
+
}
|
|
31822
|
+
|
|
31744
31823
|
/** 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
31824
|
*
|
|
31746
31825
|
* 
|
|
@@ -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
|
-
/**
|
|
706
|
-
|
|
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):
|
|
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
|
-
/**
|
|
752
|
-
|
|
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>>(
|
package/include/roblox.d.ts
CHANGED
|
@@ -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. */
|
|
@@ -2256,7 +2258,7 @@ interface GettableCores {
|
|
|
2256
2258
|
PlayerUnmutedEvent: BindableEvent;
|
|
2257
2259
|
PlayerFriendedEvent: BindableEvent;
|
|
2258
2260
|
PlayerUnfriendedEvent: BindableEvent;
|
|
2259
|
-
|
|
2261
|
+
DevConsoleVisible: boolean;
|
|
2260
2262
|
VRRotationIntensity: "Low" | "High" | "Smooth";
|
|
2261
2263
|
}
|
|
2262
2264
|
|