@rbxts/types 1.0.616 → 1.0.619
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.
|
@@ -100,6 +100,7 @@ interface Services {
|
|
|
100
100
|
StudioHighDpiService: StudioHighDpiService;
|
|
101
101
|
StudioPublishService: StudioPublishService;
|
|
102
102
|
StudioScriptDebugEventListener: StudioScriptDebugEventListener;
|
|
103
|
+
TeamCreateService: TeamCreateService;
|
|
103
104
|
Teams: Teams;
|
|
104
105
|
TeleportService: TeleportService;
|
|
105
106
|
TemporaryCageMeshProvider: TemporaryCageMeshProvider;
|
|
@@ -7244,26 +7245,6 @@ interface RigidConstraint extends Constraint {
|
|
|
7244
7245
|
* @deprecated
|
|
7245
7246
|
*/
|
|
7246
7247
|
readonly _nominal_RigidConstraint: unique symbol;
|
|
7247
|
-
/**
|
|
7248
|
-
* Shows if this constraint is broken.
|
|
7249
|
-
* Tags: ReadOnly, NotReplicated, NotBrowsable
|
|
7250
|
-
*/
|
|
7251
|
-
readonly Broken: boolean;
|
|
7252
|
-
/**
|
|
7253
|
-
* Enables destruction of the constraint by turning on force computations. If the internal reaction force or torque of the constraint exceeds their respective thresholds, the constraint breaks.
|
|
7254
|
-
* Tags: NotBrowsable
|
|
7255
|
-
*/
|
|
7256
|
-
DestructionEnabled: boolean;
|
|
7257
|
-
/**
|
|
7258
|
-
* If the internal reaction force of the constraint exceeds this value, the constraint breaks.
|
|
7259
|
-
* Tags: NotBrowsable
|
|
7260
|
-
*/
|
|
7261
|
-
DestructionForce: number;
|
|
7262
|
-
/**
|
|
7263
|
-
* If the internal reaction torque of the constraint exceeds this value, the constraint breaks.
|
|
7264
|
-
* Tags: NotBrowsable
|
|
7265
|
-
*/
|
|
7266
|
-
DestructionTorque: number;
|
|
7267
7248
|
}
|
|
7268
7249
|
|
|
7269
7250
|
/** A **RodConstraint** constrains two [Attachments](https://developer.roblox.com/en-us/api-reference/class/Attachment) to remain separated by the value specified by [RodConstraint.Length](https://developer.roblox.com/en-us/api-reference/property/RodConstraint/Length). While the attachments remain at a set distance from one another, they can both rotate freely.
|
|
@@ -30579,6 +30560,17 @@ interface Team extends Instance {
|
|
|
30579
30560
|
readonly PlayerRemoved: RBXScriptSignal<(player: Player) => void>;
|
|
30580
30561
|
}
|
|
30581
30562
|
|
|
30563
|
+
interface TeamCreateService extends Instance {
|
|
30564
|
+
/**
|
|
30565
|
+
* **DO NOT USE!**
|
|
30566
|
+
*
|
|
30567
|
+
* This field exists to force TypeScript to recognize this as a nominal type
|
|
30568
|
+
* @hidden
|
|
30569
|
+
* @deprecated
|
|
30570
|
+
*/
|
|
30571
|
+
readonly _nominal_TeamCreateService: unique symbol;
|
|
30572
|
+
}
|
|
30573
|
+
|
|
30582
30574
|
/** The Teams service holds a game's [Team](https://developer.roblox.com/en-us/api-reference/class/Team) objects. [Team](https://developer.roblox.com/en-us/api-reference/class/Team) objects must be parented to the Teams service.
|
|
30583
30575
|
*
|
|
30584
30576
|
* Teams offer a range of features that are useful to developers. These can broadly be divided into features that work out-of-the-box and features developers can program into their game.
|
|
@@ -2787,7 +2787,7 @@ interface ScriptDocument extends Instance {
|
|
|
2787
2787
|
/**
|
|
2788
2788
|
* Tags: Yields
|
|
2789
2789
|
*/
|
|
2790
|
-
EditTextAsync(this: ScriptDocument, newText: string, startLine: number, startCharacter: number, endLine
|
|
2790
|
+
EditTextAsync(this: ScriptDocument, newText: string, startLine: number, startCharacter: number, endLine: number, endCharacter: number): unknown;
|
|
2791
2791
|
}
|
|
2792
2792
|
|
|
2793
2793
|
interface ScriptEditorService extends Instance {
|
|
@@ -3133,6 +3133,7 @@ interface Studio extends Instance {
|
|
|
3133
3133
|
*/
|
|
3134
3134
|
["Built-in Function Color"]: Color3;
|
|
3135
3135
|
["Camera Mouse Wheel Speed"]: number;
|
|
3136
|
+
readonly ["Camera Pan Speed"]: number;
|
|
3136
3137
|
["Camera Shift Speed"]: number;
|
|
3137
3138
|
["Camera Speed"]: number;
|
|
3138
3139
|
["Camera Zoom to Mouse Position"]: boolean;
|
|
@@ -153,6 +153,8 @@ declare namespace Enum {
|
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
export const TShirt: TShirt;
|
|
156
|
+
/** @deprecated renamed to TShirt */
|
|
157
|
+
export const TeeShirt: TShirt;
|
|
156
158
|
|
|
157
159
|
export interface Shirt extends EnumItem {
|
|
158
160
|
Name: "Shirt";
|
|
@@ -881,6 +883,8 @@ declare namespace Enum {
|
|
|
881
883
|
}
|
|
882
884
|
|
|
883
885
|
export const TShirt: TShirt;
|
|
886
|
+
/** @deprecated renamed to TShirt */
|
|
887
|
+
export const TeeShirt: TShirt;
|
|
884
888
|
|
|
885
889
|
export interface Audio extends EnumItem {
|
|
886
890
|
Name: "Audio";
|
|
@@ -1233,6 +1237,8 @@ declare namespace Enum {
|
|
|
1233
1237
|
}
|
|
1234
1238
|
|
|
1235
1239
|
export const TShirtAccessory: TShirtAccessory;
|
|
1240
|
+
/** @deprecated renamed to TShirtAccessory */
|
|
1241
|
+
export const TeeShirtAccessory: TShirtAccessory;
|
|
1236
1242
|
|
|
1237
1243
|
export interface ShirtAccessory extends EnumItem {
|
|
1238
1244
|
Name: "ShirtAccessory";
|
|
@@ -1633,6 +1639,8 @@ declare namespace Enum {
|
|
|
1633
1639
|
}
|
|
1634
1640
|
|
|
1635
1641
|
export const TShirtAccessory: TShirtAccessory;
|
|
1642
|
+
/** @deprecated renamed to TShirtAccessory */
|
|
1643
|
+
export const TeeShirtAccessory: TShirtAccessory;
|
|
1636
1644
|
|
|
1637
1645
|
export interface ShirtAccessory extends EnumItem {
|
|
1638
1646
|
Name: "ShirtAccessory";
|
|
@@ -1809,6 +1817,10 @@ declare namespace Enum {
|
|
|
1809
1817
|
}
|
|
1810
1818
|
|
|
1811
1819
|
export const X: X;
|
|
1820
|
+
/** @deprecated renamed to X */
|
|
1821
|
+
export const Right: X;
|
|
1822
|
+
/** @deprecated renamed to X */
|
|
1823
|
+
export const Left: X;
|
|
1812
1824
|
|
|
1813
1825
|
export interface Y extends EnumItem {
|
|
1814
1826
|
Name: "Y";
|
|
@@ -1817,6 +1829,10 @@ declare namespace Enum {
|
|
|
1817
1829
|
}
|
|
1818
1830
|
|
|
1819
1831
|
export const Y: Y;
|
|
1832
|
+
/** @deprecated renamed to Y */
|
|
1833
|
+
export const Bottom: Y;
|
|
1834
|
+
/** @deprecated renamed to Y */
|
|
1835
|
+
export const Top: Y;
|
|
1820
1836
|
|
|
1821
1837
|
export interface Z extends EnumItem {
|
|
1822
1838
|
Name: "Z";
|
|
@@ -1825,6 +1841,10 @@ declare namespace Enum {
|
|
|
1825
1841
|
}
|
|
1826
1842
|
|
|
1827
1843
|
export const Z: Z;
|
|
1844
|
+
/** @deprecated renamed to Z */
|
|
1845
|
+
export const Back: Z;
|
|
1846
|
+
/** @deprecated renamed to Z */
|
|
1847
|
+
export const Front: Z;
|
|
1828
1848
|
|
|
1829
1849
|
export function GetEnumItems(this: Enum): Array<Axis>
|
|
1830
1850
|
}
|
|
@@ -1837,6 +1857,12 @@ declare namespace Enum {
|
|
|
1837
1857
|
}
|
|
1838
1858
|
|
|
1839
1859
|
export const Script: Script;
|
|
1860
|
+
/** @deprecated renamed to Script */
|
|
1861
|
+
export const Slingshot: Script;
|
|
1862
|
+
/** @deprecated renamed to Script */
|
|
1863
|
+
export const Rocket: Script;
|
|
1864
|
+
/** @deprecated renamed to Script */
|
|
1865
|
+
export const Laser: Script;
|
|
1840
1866
|
|
|
1841
1867
|
export interface GameTool extends EnumItem {
|
|
1842
1868
|
Name: "GameTool";
|
|
@@ -4913,6 +4939,8 @@ declare namespace Enum {
|
|
|
4913
4939
|
}
|
|
4914
4940
|
|
|
4915
4941
|
export const Craters: Craters;
|
|
4942
|
+
/** @deprecated renamed to Craters */
|
|
4943
|
+
export const CratersAndDebris: Craters;
|
|
4916
4944
|
|
|
4917
4945
|
export function GetEnumItems(this: Enum): Array<ExplosionType>
|
|
4918
4946
|
}
|
|
@@ -5137,6 +5165,8 @@ declare namespace Enum {
|
|
|
5137
5165
|
}
|
|
5138
5166
|
|
|
5139
5167
|
export const GothamMedium: GothamMedium;
|
|
5168
|
+
/** @deprecated renamed to GothamMedium */
|
|
5169
|
+
export const GothamSemibold: GothamMedium;
|
|
5140
5170
|
|
|
5141
5171
|
export interface GothamBold extends EnumItem {
|
|
5142
5172
|
Name: "GothamBold";
|
|
@@ -5601,6 +5631,8 @@ declare namespace Enum {
|
|
|
5601
5631
|
}
|
|
5602
5632
|
|
|
5603
5633
|
export const Brick: Brick;
|
|
5634
|
+
/** @deprecated renamed to Brick */
|
|
5635
|
+
export const Block: Brick;
|
|
5604
5636
|
|
|
5605
5637
|
export interface Plate extends EnumItem {
|
|
5606
5638
|
Name: "Plate";
|
|
@@ -6961,6 +6993,28 @@ declare namespace Enum {
|
|
|
6961
6993
|
}
|
|
6962
6994
|
|
|
6963
6995
|
export const NoInput: NoInput;
|
|
6996
|
+
/** @deprecated renamed to NoInput */
|
|
6997
|
+
export const RightTread: NoInput;
|
|
6998
|
+
/** @deprecated renamed to NoInput */
|
|
6999
|
+
export const UpDown: NoInput;
|
|
7000
|
+
/** @deprecated renamed to NoInput */
|
|
7001
|
+
export const Action2: NoInput;
|
|
7002
|
+
/** @deprecated renamed to NoInput */
|
|
7003
|
+
export const Action3: NoInput;
|
|
7004
|
+
/** @deprecated renamed to NoInput */
|
|
7005
|
+
export const Steer: NoInput;
|
|
7006
|
+
/** @deprecated renamed to NoInput */
|
|
7007
|
+
export const Throttle: NoInput;
|
|
7008
|
+
/** @deprecated renamed to NoInput */
|
|
7009
|
+
export const Action1: NoInput;
|
|
7010
|
+
/** @deprecated renamed to NoInput */
|
|
7011
|
+
export const Throtle: NoInput;
|
|
7012
|
+
/** @deprecated renamed to NoInput */
|
|
7013
|
+
export const LeftTread: NoInput;
|
|
7014
|
+
/** @deprecated renamed to NoInput */
|
|
7015
|
+
export const Action4: NoInput;
|
|
7016
|
+
/** @deprecated renamed to NoInput */
|
|
7017
|
+
export const Action5: NoInput;
|
|
6964
7018
|
|
|
6965
7019
|
export interface Constant extends EnumItem {
|
|
6966
7020
|
Name: "Constant";
|
|
@@ -9637,6 +9691,8 @@ declare namespace Enum {
|
|
|
9637
9691
|
}
|
|
9638
9692
|
|
|
9639
9693
|
export const Foil: Foil;
|
|
9694
|
+
/** @deprecated renamed to Foil */
|
|
9695
|
+
export const Aluminum: Foil;
|
|
9640
9696
|
|
|
9641
9697
|
export interface Grass extends EnumItem {
|
|
9642
9698
|
Name: "Grass";
|
|
@@ -14597,6 +14653,10 @@ declare namespace Enum {
|
|
|
14597
14653
|
}
|
|
14598
14654
|
|
|
14599
14655
|
export const Smooth: Smooth;
|
|
14656
|
+
/** @deprecated renamed to Smooth */
|
|
14657
|
+
export const Unjoinable: Smooth;
|
|
14658
|
+
/** @deprecated renamed to Smooth */
|
|
14659
|
+
export const Spawn: Smooth;
|
|
14600
14660
|
|
|
14601
14661
|
export interface Glue extends EnumItem {
|
|
14602
14662
|
Name: "Glue";
|
|
@@ -14605,6 +14665,8 @@ declare namespace Enum {
|
|
|
14605
14665
|
}
|
|
14606
14666
|
|
|
14607
14667
|
export const Glue: Glue;
|
|
14668
|
+
/** @deprecated renamed to Glue */
|
|
14669
|
+
export const Bumps: Glue;
|
|
14608
14670
|
|
|
14609
14671
|
export interface Weld extends EnumItem {
|
|
14610
14672
|
Name: "Weld";
|
|
@@ -15405,6 +15467,8 @@ declare namespace Enum {
|
|
|
15405
15467
|
}
|
|
15406
15468
|
|
|
15407
15469
|
export const Auto: Auto;
|
|
15470
|
+
/** @deprecated renamed to Auto */
|
|
15471
|
+
export const PartialThread: Auto;
|
|
15408
15472
|
|
|
15409
15473
|
export interface PerCore1 extends EnumItem {
|
|
15410
15474
|
Name: "PerCore1";
|
package/include/roblox.d.ts
CHANGED
|
@@ -1183,7 +1183,7 @@ interface Color3 {
|
|
|
1183
1183
|
/** Returns a Color3 interpolated between two Color3 objects. Alpha is a number from 0 to 1. */
|
|
1184
1184
|
Lerp(this: Color3, goal: Color3, alpha: number): Color3;
|
|
1185
1185
|
/** Returns the [hue, saturation, and value](https://en.wikipedia.org/wiki/HSL_and_HSV) of a Color3. This function is the inverse operation of the `Color3.fromHSV` constructor. */
|
|
1186
|
-
ToHSV(): LuaTuple<[number, number, number]>;
|
|
1186
|
+
ToHSV(this: Color3): LuaTuple<[number, number, number]>;
|
|
1187
1187
|
/**
|
|
1188
1188
|
* Converts the color to a six-character hexadecimal string representing the color in the format RRGGBB. It is not
|
|
1189
1189
|
* prefixed with an octothorpe (#), although this can be concatenated easily.
|
|
@@ -1194,7 +1194,7 @@ interface Color3 {
|
|
|
1194
1194
|
* print(BrickColor.new("Really red").Color:ToHex()) --> "FF0000"
|
|
1195
1195
|
* ```
|
|
1196
1196
|
*/
|
|
1197
|
-
ToHex(): string;
|
|
1197
|
+
ToHex(this: Color3): string;
|
|
1198
1198
|
}
|
|
1199
1199
|
|
|
1200
1200
|
interface Color3Constructor {
|
|
@@ -1319,16 +1319,16 @@ interface DateTime {
|
|
|
1319
1319
|
readonly UnixTimestampMillis: number;
|
|
1320
1320
|
|
|
1321
1321
|
/** Converts the value of this DateTime object to Universal Coordinated Time (UTC) */
|
|
1322
|
-
ToUniversalTime(): TimeValueTable;
|
|
1322
|
+
ToUniversalTime(this: DateTime): TimeValueTable;
|
|
1323
1323
|
|
|
1324
1324
|
/** Converts the value of this DateTime object to local time */
|
|
1325
|
-
ToLocalTime(): TimeValueTable;
|
|
1325
|
+
ToLocalTime(this: DateTime): TimeValueTable;
|
|
1326
1326
|
|
|
1327
1327
|
/**
|
|
1328
1328
|
* Formats a date as a [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time string.
|
|
1329
1329
|
* An example ISO 8601 date-time string would be `2020-01-02T10:30:45Z`, which represents January 2nd 2020 at 10:30 AM, 45 seconds.
|
|
1330
1330
|
*/
|
|
1331
|
-
ToIsoDate(): string;
|
|
1331
|
+
ToIsoDate(this: DateTime): string;
|
|
1332
1332
|
|
|
1333
1333
|
/**
|
|
1334
1334
|
* Generates a string from the DateTime value interpreted as Universal Coordinated Time (UTC) and a format string.
|
|
@@ -1337,7 +1337,7 @@ interface DateTime {
|
|
|
1337
1337
|
* @param format
|
|
1338
1338
|
* @param locale
|
|
1339
1339
|
*/
|
|
1340
|
-
FormatUniversalTime(format: string, locale: string): string;
|
|
1340
|
+
FormatUniversalTime(this: DateTime, format: string, locale: string): string;
|
|
1341
1341
|
|
|
1342
1342
|
/**
|
|
1343
1343
|
* Generates a string from the DateTime value interpreted as local time and a format string.
|
|
@@ -1346,7 +1346,7 @@ interface DateTime {
|
|
|
1346
1346
|
* @param format
|
|
1347
1347
|
* @param locale
|
|
1348
1348
|
*/
|
|
1349
|
-
FormatLocalTime(format: string, locale: string): string;
|
|
1349
|
+
FormatLocalTime(this: DateTime, format: string, locale: string): string;
|
|
1350
1350
|
}
|
|
1351
1351
|
|
|
1352
1352
|
interface DateTimeConstructor {
|