@rbxts/types 1.0.561 → 1.0.562
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.
|
@@ -6029,7 +6029,7 @@ interface Chat extends Instance {
|
|
|
6029
6029
|
* * Set `message.ShouldDeliver` to false in order to cancel delivery of the message to players (useful for implementing a chat blacklist)
|
|
6030
6030
|
* * Get/set the speaker's name color (`message.ExtraData.NameColor`, a Color3) on a message-by-message basis
|
|
6031
6031
|
*/
|
|
6032
|
-
RegisterChatCallback(this: Chat, callbackType: CastsToEnum<Enum.ChatCallbackType>, callbackFunction:
|
|
6032
|
+
RegisterChatCallback(this: Chat, callbackType: CastsToEnum<Enum.ChatCallbackType>, callbackFunction: Callback): void;
|
|
6033
6033
|
/**
|
|
6034
6034
|
* **Note**
|
|
6035
6035
|
*
|
|
@@ -7860,7 +7860,7 @@ interface ContextActionService extends Instance {
|
|
|
7860
7860
|
* Tags: Deprecated
|
|
7861
7861
|
* @deprecated
|
|
7862
7862
|
*/
|
|
7863
|
-
BindActionToInputTypes(this: ContextActionService, actionName: string, functionToBind:
|
|
7863
|
+
BindActionToInputTypes(this: ContextActionService, actionName: string, functionToBind: Callback, createTouchButton: boolean, inputTypes: Array<any>): void;
|
|
7864
7864
|
/**
|
|
7865
7865
|
* Bind an [KeyCode](https://developer.roblox.com/en-us/api-reference/enum/KeyCode) that can be used with an [UserInputType](https://developer.roblox.com/en-us/api-reference/enum/UserInputType) to activate [ClickDetector](https://developer.roblox.com/en-us/api-reference/class/ClickDetector) events and [Tool](https://developer.roblox.com/en-us/api-reference/class/Tool) objects. When the given key/button is pressed, it fires the [Mouse.Button1Down](https://developer.roblox.com/en-us/api-reference/event/Mouse/Button1Down) event on the mouse sent to [Tool.Equipped](https://developer.roblox.com/en-us/api-reference/event/Tool/Equipped). This in turn fires the [Tool.Activated](https://developer.roblox.com/en-us/api-reference/event/Tool/Activated) event if [Tool.ManualActivationOnly](https://developer.roblox.com/en-us/api-reference/property/Tool/ManualActivationOnly) is not set to true. For gamepad input, this function is called by the default control scripts in order to bind the ButtonR2 [KeyCode](https://developer.roblox.com/en-us/api-reference/enum/KeyCode).
|
|
7866
7866
|
*
|
|
@@ -9841,7 +9841,7 @@ interface GlobalDataStore extends Instance {
|
|
|
9841
9841
|
* Tags: Deprecated
|
|
9842
9842
|
* @deprecated
|
|
9843
9843
|
*/
|
|
9844
|
-
OnUpdate(this: GlobalDataStore, key: string, callback:
|
|
9844
|
+
OnUpdate(this: GlobalDataStore, key: string, callback: Callback): RBXScriptConnection;
|
|
9845
9845
|
/**
|
|
9846
9846
|
* This function returns the latest value of the provided key and a [DataStoreKeyInfo](https://developer.roblox.com/en-us/api-reference/class/DataStoreKeyInfo) instance. If the key does not exist or if the latest version has been marked as deleted, both return values will be `nil`.
|
|
9847
9847
|
*
|
|
@@ -20583,7 +20583,7 @@ interface MemoryStoreSortedMap extends Instance {
|
|
|
20583
20583
|
* For a more in-depth look, take a look at the `articles/Memory Store|Memory Store` article.
|
|
20584
20584
|
* Tags: Yields
|
|
20585
20585
|
*/
|
|
20586
|
-
UpdateAsync(this: MemoryStoreSortedMap, key: string, transformFunction:
|
|
20586
|
+
UpdateAsync(this: MemoryStoreSortedMap, key: string, transformFunction: Callback, expiration: number): unknown;
|
|
20587
20587
|
}
|
|
20588
20588
|
|
|
20589
20589
|
interface MessageBusConnection extends Instance {
|
|
@@ -31687,7 +31687,7 @@ interface UIGridStyleLayout extends UILayout {
|
|
|
31687
31687
|
* Tags: Deprecated
|
|
31688
31688
|
* @deprecated
|
|
31689
31689
|
*/
|
|
31690
|
-
SetCustomSortFunction(this: UIGridStyleLayout, callback?:
|
|
31690
|
+
SetCustomSortFunction(this: UIGridStyleLayout, callback?: Callback): void;
|
|
31691
31691
|
}
|
|
31692
31692
|
|
|
31693
31693
|
/** A UIGridLayout (not to be confused with the abstract [UIGridStyleLayout](https://developer.roblox.com/en-us/api-reference/class/UIGridStyleLayout) from which this class inherits) lays out sibling UI elements in multiple rows within the parent UI element, adding elements to a row one-by-one until the next element would not fit. It then continues adding elements in the next row. A UIGridLayout will take UI elements' [GuiObject.Size](https://developer.roblox.com/en-us/api-reference/property/GuiObject/Size) and [GuiObject.Position](https://developer.roblox.com/en-us/api-reference/property/GuiObject/Position) under control. While under control, these UI elements' properties will not be editable in the Properties window.
|
|
@@ -833,7 +833,7 @@ interface PluginGui extends LayerCollector {
|
|
|
833
833
|
* * [Plugin:CreateDockWidgetPluginGui](https://developer.roblox.com/en-us/api-reference/function/Plugin/CreateDockWidgetPluginGui) to create a [PluginGui](https://developer.roblox.com/en-us/api-reference/class/PluginGui)
|
|
834
834
|
* * [DataModel:BindToClose](https://developer.roblox.com/en-us/api-reference/function/DataModel/BindToClose), which can be used to bind a function to the game ending and should not be confused with this function
|
|
835
835
|
*/
|
|
836
|
-
BindToClose(this: PluginGui, callback?:
|
|
836
|
+
BindToClose(this: PluginGui, callback?: Callback): void;
|
|
837
837
|
/**
|
|
838
838
|
* GetRelativeMousePosition returns the position of the mouse relative to the top-left corner of the [PluginGui](https://developer.roblox.com/en-us/api-reference/class/PluginGui). The returned value changes only if a mouse input began on the PluginGui, or if the mouse is presently hovering over the window.
|
|
839
839
|
*
|
|
@@ -1915,8 +1915,8 @@ interface Plugin extends Instance {
|
|
|
1915
1915
|
* Negates the given parts and returns the resulting NegateOperations.
|
|
1916
1916
|
*/
|
|
1917
1917
|
Negate(this: Plugin, objects: Array<Instance>): Array<Instance>;
|
|
1918
|
-
OnInvoke(this: Plugin, key: string, callback:
|
|
1919
|
-
OnSetItem(this: Plugin, key: string, callback:
|
|
1918
|
+
OnInvoke(this: Plugin, key: string, callback: Callback): Instance | undefined;
|
|
1919
|
+
OnSetItem(this: Plugin, key: string, callback: Callback): Instance | undefined;
|
|
1920
1920
|
/**
|
|
1921
1921
|
* Used to open the given script instance in an editor window, in Roblox studio, at the given line. If no line is given as an argument it will default to 0.
|
|
1922
1922
|
*/
|