@rbxts/types 1.0.564 → 1.0.568
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 +32 -10
- package/include/generated/enums.d.ts +4 -4
- package/include/roblox.d.ts +24 -0
- package/package.json +1 -1
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
interface Services {
|
|
8
8
|
AnalyticsService: AnalyticsService;
|
|
9
9
|
AnimationClipProvider: AnimationClipProvider;
|
|
10
|
+
AnimationFromVideoCreatorService: AnimationFromVideoCreatorService;
|
|
10
11
|
AppUpdateService: AppUpdateService;
|
|
11
12
|
AssetCounterService: AssetCounterService;
|
|
12
13
|
AssetDeliveryProxy: AssetDeliveryProxy;
|
|
@@ -87,6 +88,7 @@ interface Services {
|
|
|
87
88
|
Stats: Stats;
|
|
88
89
|
StudioAssetService: StudioAssetService;
|
|
89
90
|
StudioDeviceEmulatorService: StudioDeviceEmulatorService;
|
|
91
|
+
StudioPublishService: StudioPublishService;
|
|
90
92
|
StudioScriptDebugEventListener: StudioScriptDebugEventListener;
|
|
91
93
|
Teams: Teams;
|
|
92
94
|
TeleportService: TeleportService;
|
|
@@ -1639,6 +1641,17 @@ interface AnimationController extends Instance {
|
|
|
1639
1641
|
readonly AnimationPlayed: RBXScriptSignal<(animationTrack: AnimationTrack) => void>;
|
|
1640
1642
|
}
|
|
1641
1643
|
|
|
1644
|
+
interface AnimationFromVideoCreatorService extends Instance {
|
|
1645
|
+
/**
|
|
1646
|
+
* **DO NOT USE!**
|
|
1647
|
+
*
|
|
1648
|
+
* This field exists to force TypeScript to recognize this as a nominal type
|
|
1649
|
+
* @hidden
|
|
1650
|
+
* @deprecated
|
|
1651
|
+
*/
|
|
1652
|
+
readonly _nominal_AnimationFromVideoCreatorService: unique symbol;
|
|
1653
|
+
}
|
|
1654
|
+
|
|
1642
1655
|
interface AnimationRigData extends Instance {
|
|
1643
1656
|
/**
|
|
1644
1657
|
* **DO NOT USE!**
|
|
@@ -9196,6 +9209,7 @@ interface Explosion extends Instance {
|
|
|
9196
9209
|
* For this reason a new Explosion should be created if the developer wants an explosion to appear at a different position.
|
|
9197
9210
|
*/
|
|
9198
9211
|
Position: Vector3;
|
|
9212
|
+
TimeScale: number;
|
|
9199
9213
|
/**
|
|
9200
9214
|
* This property determines whether or not the visual effect of an [Explosion](https://developer.roblox.com/en-us/api-reference/class/Explosion) is shown or not.
|
|
9201
9215
|
*
|
|
@@ -9578,6 +9592,7 @@ interface Fire extends Instance {
|
|
|
9578
9592
|
* Tags: NotReplicated
|
|
9579
9593
|
*/
|
|
9580
9594
|
Size: number;
|
|
9595
|
+
TimeScale: number;
|
|
9581
9596
|
}
|
|
9582
9597
|
|
|
9583
9598
|
/** An instance representing a 1D float curve encoded via a sorted list of [FloatCurveKeys](https://developer.roblox.com/en-us/api-reference/datatype/FloatCurveKey).
|
|
@@ -13385,6 +13400,7 @@ interface Highlight extends Instance {
|
|
|
13385
13400
|
* @deprecated
|
|
13386
13401
|
*/
|
|
13387
13402
|
readonly _nominal_Highlight: unique symbol;
|
|
13403
|
+
Adornee: Instance | undefined;
|
|
13388
13404
|
DepthMode: Enum.HighlightDepthMode;
|
|
13389
13405
|
Enabled: boolean;
|
|
13390
13406
|
FillColor: Color3;
|
|
@@ -14642,7 +14658,7 @@ interface Humanoid extends Instance {
|
|
|
14642
14658
|
* * [Humanoid.Sit](https://developer.roblox.com/en-us/api-reference/property/Humanoid/Sit), which indicates if a Humanoid is currently sitting
|
|
14643
14659
|
* * [Humanoid.SeatPart](https://developer.roblox.com/en-us/api-reference/property/Humanoid/SeatPart), which indicates the seat a Humanoid is currently sitting in, if any.
|
|
14644
14660
|
*/
|
|
14645
|
-
readonly Seated: RBXScriptSignal<(active: boolean, currentSeatPart: Seat | VehicleSeat) => void>;
|
|
14661
|
+
readonly Seated: RBXScriptSignal<(active: boolean, currentSeatPart: Seat | VehicleSeat | undefined) => void>;
|
|
14646
14662
|
/**
|
|
14647
14663
|
* This event fires when the state of the [Humanoid](https://developer.roblox.com/en-us/api-reference/class/Humanoid) is changed.
|
|
14648
14664
|
*
|
|
@@ -24441,7 +24457,7 @@ interface PathfindingLink extends Instance {
|
|
|
24441
24457
|
Attachment0: Attachment | undefined;
|
|
24442
24458
|
Attachment1: Attachment | undefined;
|
|
24443
24459
|
IsBidirectional: boolean;
|
|
24444
|
-
|
|
24460
|
+
Label: string;
|
|
24445
24461
|
}
|
|
24446
24462
|
|
|
24447
24463
|
/** **Beta Feature** This class is currently a part of the PathfindingModifier beta feature. Eligible developers must enable the feature within Studio and functionality may change.
|
|
@@ -24466,14 +24482,7 @@ interface PathfindingModifier extends Instance {
|
|
|
24466
24482
|
* @deprecated
|
|
24467
24483
|
*/
|
|
24468
24484
|
readonly _nominal_PathfindingModifier: unique symbol;
|
|
24469
|
-
|
|
24470
|
-
* **Beta Feature** This class is currently a part of the PathfindingModifier beta feature. Eligible developers must enable the feature within Studio and functionality may change.
|
|
24471
|
-
*
|
|
24472
|
-
* For a more detailed overview of the [PathfindingService](”PathfindingService”) and PathfindingModifiers, you can take a look at the [Pathfinding](”`Articles/Pathfinding|Pathfinding`”) article.
|
|
24473
|
-
*
|
|
24474
|
-
* The name of the navigation area inside or on top of the `Part|Part's` volume.
|
|
24475
|
-
*/
|
|
24476
|
-
ModifierId: string;
|
|
24485
|
+
Label: string;
|
|
24477
24486
|
/**
|
|
24478
24487
|
* Determines if the parts enclosed by the modifier are traversable, even if they would normally be collided with. See [Ignoring Obstacles](https://developer.roblox.com/articles/Pathfinding#ignoring-obstacles) for details.
|
|
24479
24488
|
*/
|
|
@@ -27879,6 +27888,7 @@ interface Smoke extends Instance {
|
|
|
27879
27888
|
* Tags: NotReplicated
|
|
27880
27889
|
*/
|
|
27881
27890
|
Size: number;
|
|
27891
|
+
TimeScale: number;
|
|
27882
27892
|
}
|
|
27883
27893
|
|
|
27884
27894
|
/** SocialService facilitates social functions that impact relationships made on the Roblox platform.
|
|
@@ -29030,6 +29040,7 @@ interface Sparkles extends Instance {
|
|
|
29030
29040
|
* It should be noted that sparkles have a partial [ParticleEmitter.LightEmission](https://developer.roblox.com/en-us/api-reference/property/ParticleEmitter/LightEmission) effect, so dark colors tend to render more transparent and white colors look very bright.
|
|
29031
29041
|
*/
|
|
29032
29042
|
SparkleColor: Color3;
|
|
29043
|
+
TimeScale: number;
|
|
29033
29044
|
}
|
|
29034
29045
|
|
|
29035
29046
|
interface Speaker extends Instance {
|
|
@@ -29530,6 +29541,17 @@ interface StudioDeviceEmulatorService extends Instance {
|
|
|
29530
29541
|
readonly _nominal_StudioDeviceEmulatorService: unique symbol;
|
|
29531
29542
|
}
|
|
29532
29543
|
|
|
29544
|
+
interface StudioPublishService extends Instance {
|
|
29545
|
+
/**
|
|
29546
|
+
* **DO NOT USE!**
|
|
29547
|
+
*
|
|
29548
|
+
* This field exists to force TypeScript to recognize this as a nominal type
|
|
29549
|
+
* @hidden
|
|
29550
|
+
* @deprecated
|
|
29551
|
+
*/
|
|
29552
|
+
readonly _nominal_StudioPublishService: unique symbol;
|
|
29553
|
+
}
|
|
29554
|
+
|
|
29533
29555
|
interface StudioScriptDebugEventListener extends Instance {
|
|
29534
29556
|
/**
|
|
29535
29557
|
* **DO NOT USE!**
|
|
@@ -5866,17 +5866,17 @@ declare namespace Enum {
|
|
|
5866
5866
|
|
|
5867
5867
|
export const AlwaysOnTop: AlwaysOnTop;
|
|
5868
5868
|
|
|
5869
|
-
export interface
|
|
5870
|
-
Name: "
|
|
5869
|
+
export interface Occluded {
|
|
5870
|
+
Name: "Occluded";
|
|
5871
5871
|
Value: 1;
|
|
5872
5872
|
EnumType: EnumType<HighlightDepthMode>;
|
|
5873
5873
|
}
|
|
5874
5874
|
|
|
5875
|
-
export const
|
|
5875
|
+
export const Occluded: Occluded;
|
|
5876
5876
|
|
|
5877
5877
|
export function GetEnumItems(this: defined): Array<HighlightDepthMode>
|
|
5878
5878
|
}
|
|
5879
|
-
export type HighlightDepthMode = HighlightDepthMode.AlwaysOnTop | HighlightDepthMode.
|
|
5879
|
+
export type HighlightDepthMode = HighlightDepthMode.AlwaysOnTop | HighlightDepthMode.Occluded;
|
|
5880
5880
|
export namespace HorizontalAlignment {
|
|
5881
5881
|
export interface Center {
|
|
5882
5882
|
Name: "Center";
|
package/include/roblox.d.ts
CHANGED
|
@@ -1182,6 +1182,17 @@ interface Color3 {
|
|
|
1182
1182
|
Lerp(this: Color3, goal: Color3, alpha: number): Color3;
|
|
1183
1183
|
/** 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. */
|
|
1184
1184
|
ToHSV(): LuaTuple<[number, number, number]>;
|
|
1185
|
+
/**
|
|
1186
|
+
* Converts the color to a six-character hexadecimal string representing the color in the format RRGGBB. It is not
|
|
1187
|
+
* prefixed with an octothorpe (#), although this can be concatenated easily.
|
|
1188
|
+
*
|
|
1189
|
+
* The returned string can be provided to `Color3.fromHex` to produce the original color.
|
|
1190
|
+
* ```lua
|
|
1191
|
+
* print(Color3.new(0, 1, 0):ToHex()) --> "00FF00"
|
|
1192
|
+
* print(BrickColor.new("Really red").Color:ToHex()) --> "FF0000"
|
|
1193
|
+
* ```
|
|
1194
|
+
*/
|
|
1195
|
+
ToHex(): string;
|
|
1185
1196
|
}
|
|
1186
1197
|
|
|
1187
1198
|
interface Color3Constructor {
|
|
@@ -1191,6 +1202,19 @@ interface Color3Constructor {
|
|
|
1191
1202
|
fromHSV: (hue: number, sat: number, val: number) => Color3;
|
|
1192
1203
|
/** Returns the hue, saturation, and value of a Color3. */
|
|
1193
1204
|
toHSV: (color: Color3) => LuaTuple<[number, number, number]>;
|
|
1205
|
+
/**
|
|
1206
|
+
* Returns a new Color3 from a six- or three-character [hexadecimal](https://en.wikipedia.org/wiki/Hexadecimal)
|
|
1207
|
+
* format. A preceding octothorpe (#) is ignored, if present. This function interprets the given string as a typical
|
|
1208
|
+
* web hex color in the format RRGGBB or RGB (shorthand for RRGGBB). For example, #FFAA00 produces an orange color,
|
|
1209
|
+
* and is the same as #FA0.
|
|
1210
|
+
*
|
|
1211
|
+
* The color returned can be converted back into hex using `Color3:toHex`, although it is not guaranteed to return
|
|
1212
|
+
* the exact same string as passed to this function.
|
|
1213
|
+
* ```lua
|
|
1214
|
+
* print(Color3.fromHex("#FF0000")) --> 1, 0, 0
|
|
1215
|
+
* ```
|
|
1216
|
+
*/
|
|
1217
|
+
fromHex: (hex: string) => Color3;
|
|
1194
1218
|
/** Returns a Color3 with the given red, green, and blue values. The numbers can range from 0 to 1, defaulting to 0 */
|
|
1195
1219
|
new (red?: number, green?: number, blue?: number): Color3;
|
|
1196
1220
|
}
|