@rbxts/types 1.0.796 → 1.0.798
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.
|
@@ -36117,10 +36117,17 @@ interface UIDragDetector extends UIComponent {
|
|
|
36117
36117
|
MinDragTranslation: UDim2;
|
|
36118
36118
|
ReferenceUIInstance: GuiObject | undefined;
|
|
36119
36119
|
ResponseStyle: Enum.UIDragDetectorResponseStyle;
|
|
36120
|
-
AddConstraintFunction(
|
|
36120
|
+
AddConstraintFunction(
|
|
36121
|
+
this: UIDragDetector,
|
|
36122
|
+
priority: number,
|
|
36123
|
+
callback: (
|
|
36124
|
+
proposedPosition: UDim2,
|
|
36125
|
+
proposedRotation: number,
|
|
36126
|
+
) => LuaTuple<[UDim2, number, Enum.UIDragDetectorDragRelativity?, Enum.UIDragDetectorDragSpace?]>,
|
|
36127
|
+
): RBXScriptConnection;
|
|
36121
36128
|
GetReferencePosition(this: UIDragDetector): UDim2;
|
|
36122
36129
|
GetReferenceRotation(this: UIDragDetector): number;
|
|
36123
|
-
SetDragStyleFunction(this: UIDragDetector, callback:
|
|
36130
|
+
SetDragStyleFunction(this: UIDragDetector, callback: (inputPosition: UDim2) => UDim2 | void): void;
|
|
36124
36131
|
readonly DragContinue: RBXScriptSignal<(inputPosition: Vector2) => void>;
|
|
36125
36132
|
readonly DragEnd: RBXScriptSignal<(inputPosition: Vector2) => void>;
|
|
36126
36133
|
readonly DragStart: RBXScriptSignal<(inputPosition: Vector2) => void>;
|
package/include/roblox.d.ts
CHANGED
|
@@ -817,9 +817,7 @@ interface InstanceConstructor {
|
|
|
817
817
|
* - This constructor will not copy any of the descendant `Instances` parented to the existing object.
|
|
818
818
|
* - This constructor will return a new object even if the existing object had `Instance.Archivable` set to `false`.
|
|
819
819
|
*/
|
|
820
|
-
fromExisting: <T extends
|
|
821
|
-
existingInstance: CreatableInstances[T],
|
|
822
|
-
) => CreatableInstances[T];
|
|
820
|
+
fromExisting: <T extends Instance>(existingInstance: T) => T;
|
|
823
821
|
}
|
|
824
822
|
|
|
825
823
|
declare const Instance: InstanceConstructor;
|