@rbxts/types 1.0.783 → 1.0.785
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 +19 -5
- package/include/generated/enums.d.ts +0 -21
- package/include/roblox.d.ts +43 -0
- package/package.json +1 -1
|
@@ -173,6 +173,7 @@ interface Services {
|
|
|
173
173
|
TutorialService: TutorialService;
|
|
174
174
|
TweenService: TweenService;
|
|
175
175
|
UGCAvatarService: UGCAvatarService;
|
|
176
|
+
UIDragDetectorService: UIDragDetectorService;
|
|
176
177
|
UnvalidatedAssetService: UnvalidatedAssetService;
|
|
177
178
|
UserInputService: UserInputService;
|
|
178
179
|
UserService: UserService;
|
|
@@ -958,6 +959,8 @@ interface Instance {
|
|
|
958
959
|
* * [Instance:GetAttribute](https://developer.roblox.com/en-us/api-reference/function/Instance/GetAttribute), returns the attribute which has been assigned to the given name
|
|
959
960
|
* * [Instance.AttributeChanged](https://developer.roblox.com/en-us/api-reference/event/Instance/AttributeChanged), fires whenever an attribute is changed on the instance
|
|
960
961
|
* * [Instance:GetAttributeChangedSignal](https://developer.roblox.com/en-us/api-reference/function/Instance/GetAttributeChangedSignal), returns an event that fires when the given attribute changes
|
|
962
|
+
*
|
|
963
|
+
* Tags: CustomLuaState
|
|
961
964
|
*/
|
|
962
965
|
GetAttributes(this: Instance): Map<string, AttributeValue>;
|
|
963
966
|
/**
|
|
@@ -11830,6 +11833,7 @@ interface GetTextBoundsParams extends Instance {
|
|
|
11830
11833
|
*/
|
|
11831
11834
|
readonly _nominal_GetTextBoundsParams: unique symbol;
|
|
11832
11835
|
Font: Font;
|
|
11836
|
+
RichText: boolean;
|
|
11833
11837
|
Size: number;
|
|
11834
11838
|
Text: string;
|
|
11835
11839
|
Width: number;
|
|
@@ -14832,9 +14836,6 @@ interface ScreenGui extends LayerCollector {
|
|
|
14832
14836
|
*/
|
|
14833
14837
|
IgnoreGuiInset: boolean;
|
|
14834
14838
|
SafeAreaCompatibility: Enum.SafeAreaCompatibility;
|
|
14835
|
-
/**
|
|
14836
|
-
* Tags: NotBrowsable
|
|
14837
|
-
*/
|
|
14838
14839
|
ScreenInsets: Enum.ScreenInsets;
|
|
14839
14840
|
}
|
|
14840
14841
|
|
|
@@ -29202,7 +29203,7 @@ interface Players extends Instance {
|
|
|
29202
29203
|
/**
|
|
29203
29204
|
* Tags: Yields
|
|
29204
29205
|
*/
|
|
29205
|
-
BanAsync(this: Players, config:
|
|
29206
|
+
BanAsync(this: Players, config: BanAsyncConfig): void;
|
|
29206
29207
|
/**
|
|
29207
29208
|
* Tags: Yields
|
|
29208
29209
|
*/
|
|
@@ -29427,7 +29428,7 @@ interface Players extends Instance {
|
|
|
29427
29428
|
/**
|
|
29428
29429
|
* Tags: Yields
|
|
29429
29430
|
*/
|
|
29430
|
-
UnbanAsync(this: Players, config:
|
|
29431
|
+
UnbanAsync(this: Players, config: UnbanAsyncConfig): void;
|
|
29431
29432
|
/**
|
|
29432
29433
|
* The PlayerAdded event fires when a player enters the game. This is used to fire an event when a player joins a game, such as loading the player's saved [GlobalDataStore](https://developer.roblox.com/en-us/api-reference/class/GlobalDataStore) data.
|
|
29433
29434
|
*
|
|
@@ -35865,7 +35866,9 @@ interface UIDragDetector extends UIComponent {
|
|
|
35865
35866
|
* @deprecated
|
|
35866
35867
|
*/
|
|
35867
35868
|
readonly _nominal_UIDragDetector: unique symbol;
|
|
35869
|
+
ActivatedCursorIcon: string;
|
|
35868
35870
|
BoundingUI: GuiBase2d | undefined;
|
|
35871
|
+
CursorIcon: string;
|
|
35869
35872
|
DragAxis: Vector2;
|
|
35870
35873
|
DragRelativity: Enum.UIDragDetectorDragRelativity;
|
|
35871
35874
|
DragRotation: number;
|
|
@@ -36498,6 +36501,17 @@ interface UIStroke extends UIComponent {
|
|
|
36498
36501
|
Transparency: number;
|
|
36499
36502
|
}
|
|
36500
36503
|
|
|
36504
|
+
interface UIDragDetectorService extends Instance {
|
|
36505
|
+
/**
|
|
36506
|
+
* **DO NOT USE!**
|
|
36507
|
+
*
|
|
36508
|
+
* This field exists to force TypeScript to recognize this as a nominal type
|
|
36509
|
+
* @hidden
|
|
36510
|
+
* @deprecated
|
|
36511
|
+
*/
|
|
36512
|
+
readonly _nominal_UIDragDetectorService: unique symbol;
|
|
36513
|
+
}
|
|
36514
|
+
|
|
36501
36515
|
interface UnvalidatedAssetService extends Instance {
|
|
36502
36516
|
/**
|
|
36503
36517
|
* **DO NOT USE!**
|
|
@@ -20125,27 +20125,6 @@ declare namespace Enum {
|
|
|
20125
20125
|
}
|
|
20126
20126
|
export type TickCountSampleMethod = TickCountSampleMethod.Fast | TickCountSampleMethod.Benchmark | TickCountSampleMethod.Precise;
|
|
20127
20127
|
|
|
20128
|
-
export namespace TonemapperPreset {
|
|
20129
|
-
export interface Default extends globalThis.EnumItem {
|
|
20130
|
-
Name: "Default";
|
|
20131
|
-
Value: 0;
|
|
20132
|
-
EnumType: typeof globalThis.Enum.TonemapperPreset;
|
|
20133
|
-
}
|
|
20134
|
-
|
|
20135
|
-
export const Default: Default;
|
|
20136
|
-
|
|
20137
|
-
export interface Retro extends globalThis.EnumItem {
|
|
20138
|
-
Name: "Retro";
|
|
20139
|
-
Value: 1;
|
|
20140
|
-
EnumType: typeof globalThis.Enum.TonemapperPreset;
|
|
20141
|
-
}
|
|
20142
|
-
|
|
20143
|
-
export const Retro: Retro;
|
|
20144
|
-
|
|
20145
|
-
export function GetEnumItems(this: globalThis.Enum): Array<globalThis.Enum.TonemapperPreset>;
|
|
20146
|
-
}
|
|
20147
|
-
export type TonemapperPreset = TonemapperPreset.Default | TonemapperPreset.Retro;
|
|
20148
|
-
|
|
20149
20128
|
export namespace TopBottom {
|
|
20150
20129
|
export interface Top extends globalThis.EnumItem {
|
|
20151
20130
|
Name: "Top";
|
package/include/roblox.d.ts
CHANGED
|
@@ -2966,3 +2966,46 @@ declare const enum RobloxEmoji {
|
|
|
2966
2966
|
Premium = "",
|
|
2967
2967
|
Verified = "",
|
|
2968
2968
|
}
|
|
2969
|
+
|
|
2970
|
+
interface BanAsyncConfig {
|
|
2971
|
+
/**
|
|
2972
|
+
* (Required) UserID of the players to be banned.
|
|
2973
|
+
*
|
|
2974
|
+
* Max size is `50`. */
|
|
2975
|
+
UserIds: Array<number>;
|
|
2976
|
+
/**
|
|
2977
|
+
* (Required) Duration of the ban in seconds. Permanent bans should have a value of `-1`.
|
|
2978
|
+
*
|
|
2979
|
+
* Zero and all other negative values are invalid.
|
|
2980
|
+
*/
|
|
2981
|
+
Duration: number;
|
|
2982
|
+
/**
|
|
2983
|
+
* (Required) The message that will be displayed to users when they attempt to and fail to join an experience. Max size is 400.
|
|
2984
|
+
*/
|
|
2985
|
+
DisplayReason: string;
|
|
2986
|
+
/**
|
|
2987
|
+
* (Required) Any internal messaging that will be returned when querying the user's ban history. Max size is 1000.
|
|
2988
|
+
*/
|
|
2989
|
+
PrivateReason: string;
|
|
2990
|
+
/**
|
|
2991
|
+
* (Optional, default is `true`) Propagates the ban to all places within this universe.
|
|
2992
|
+
*/
|
|
2993
|
+
ApplyToUniverse?: boolean;
|
|
2994
|
+
/**
|
|
2995
|
+
* (Optional, default is `false`) When `true`, Roblox does not attempt to ban alt accounts.
|
|
2996
|
+
*/
|
|
2997
|
+
ExcludeAltAccounts?: boolean;
|
|
2998
|
+
}
|
|
2999
|
+
|
|
3000
|
+
interface UnbanAsyncConfig {
|
|
3001
|
+
/**
|
|
3002
|
+
* (Required) UserIDs to be force allowed into the experience(s).
|
|
3003
|
+
*
|
|
3004
|
+
* Max size is `50`.
|
|
3005
|
+
*/
|
|
3006
|
+
UserIds: Array<number>;
|
|
3007
|
+
/**
|
|
3008
|
+
* (Optional, default is `true`) Propagates the unban to all places within this universe.
|
|
3009
|
+
*/
|
|
3010
|
+
ApplyToUniverse?: boolean;
|
|
3011
|
+
}
|