Skip to content

Commit 7fe7929

Browse files
Add InstanceHandle
1 parent e6ed4b7 commit 7fe7929

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

include/roblox.d.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1889,6 +1889,24 @@ interface FontConstructor {
18891889
}
18901890
declare const Font: FontConstructor;
18911891

1892+
// InstanceHandle
1893+
interface InstanceHandle {
1894+
/**
1895+
* **DO NOT USE!**
1896+
*
1897+
* This field exists to force TypeScript to recognize this as a nominal type
1898+
* @hidden
1899+
* @deprecated
1900+
*/
1901+
readonly _nominal_InstanceHandle: unique symbol;
1902+
Get(this: InstanceHandle): Instance?;
1903+
Wait(this: InstanceHandle, timeout: number): Instance?;
1904+
}
1905+
interface InstanceHandleConstructor {
1906+
new (instance: Instance?): InstanceHandle;
1907+
}
1908+
declare const InstanceHandle: InstanceHandleConstructor;
1909+
18921910
// NumberRange
18931911
interface NumberRange {
18941912
/**
@@ -3203,6 +3221,7 @@ interface CheckableTypes extends CheckablePrimitives {
32033221
FloatCurveKey: FloatCurveKey;
32043222
Font: Font;
32053223
Instance: Instance;
3224+
InstanceHandle: InstanceHandle;
32063225
NumberRange: NumberRange;
32073226
NumberSequence: NumberSequence;
32083227
NumberSequenceKeypoint: NumberSequenceKeypoint;
@@ -3245,6 +3264,7 @@ type AttributeValue =
32453264
| Vector2
32463265
| Vector3
32473266
| CFrame
3267+
| InstanceHandle
32483268
| NumberSequence
32493269
| ColorSequence
32503270
| NumberRange

0 commit comments

Comments
 (0)