@rbxts/types 1.0.946 → 1.0.947
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 +1 -1
- package/include/roblox.d.ts +22 -0
- package/package.json +1 -1
|
@@ -2733,7 +2733,7 @@ interface Instance extends RBXObject {
|
|
|
2733
2733
|
* @param attribute The name of the attribute being set.
|
|
2734
2734
|
* @param value The value to set the specified attribute to.
|
|
2735
2735
|
*/
|
|
2736
|
-
SetAttribute(this: Instance, attribute: string, value:
|
|
2736
|
+
SetAttribute(this: Instance, attribute: string, value: SetAttributeValue | undefined): void;
|
|
2737
2737
|
/**
|
|
2738
2738
|
* Returns the child of the `Instance` with the given name. If the child does not exist, it will yield the current thread until it does.
|
|
2739
2739
|
*
|
package/include/roblox.d.ts
CHANGED
|
@@ -1889,6 +1889,25 @@ interface FontConstructor {
|
|
|
1889
1889
|
}
|
|
1890
1890
|
declare const Font: FontConstructor;
|
|
1891
1891
|
|
|
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 | undefined;
|
|
1903
|
+
Wait(this: InstanceHandle): Instance;
|
|
1904
|
+
Wait(this: InstanceHandle, timeout: number): Instance | undefined;
|
|
1905
|
+
}
|
|
1906
|
+
interface InstanceHandleConstructor {
|
|
1907
|
+
new (instance: Instance | undefined): InstanceHandle;
|
|
1908
|
+
}
|
|
1909
|
+
declare const InstanceHandle: InstanceHandleConstructor;
|
|
1910
|
+
|
|
1892
1911
|
// NumberRange
|
|
1893
1912
|
interface NumberRange {
|
|
1894
1913
|
/**
|
|
@@ -3203,6 +3222,7 @@ interface CheckableTypes extends CheckablePrimitives {
|
|
|
3203
3222
|
FloatCurveKey: FloatCurveKey;
|
|
3204
3223
|
Font: Font;
|
|
3205
3224
|
Instance: Instance;
|
|
3225
|
+
InstanceHandle: InstanceHandle;
|
|
3206
3226
|
NumberRange: NumberRange;
|
|
3207
3227
|
NumberSequence: NumberSequence;
|
|
3208
3228
|
NumberSequenceKeypoint: NumberSequenceKeypoint;
|
|
@@ -3245,11 +3265,13 @@ type AttributeValue =
|
|
|
3245
3265
|
| Vector2
|
|
3246
3266
|
| Vector3
|
|
3247
3267
|
| CFrame
|
|
3268
|
+
| InstanceHandle
|
|
3248
3269
|
| NumberSequence
|
|
3249
3270
|
| ColorSequence
|
|
3250
3271
|
| NumberRange
|
|
3251
3272
|
| Rect
|
|
3252
3273
|
| Font;
|
|
3274
|
+
type SetAttributeValue = AttributeValue | Instance;
|
|
3253
3275
|
|
|
3254
3276
|
declare const enum RobloxEmoji {
|
|
3255
3277
|
Robux = "",
|