@rbxts/types 1.0.760 → 1.0.762
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.
|
@@ -1014,7 +1014,7 @@ interface Instance {
|
|
|
1014
1014
|
this: T,
|
|
1015
1015
|
propertyName: InstancePropertyNames<T>,
|
|
1016
1016
|
): RBXScriptSignal<() => void>;
|
|
1017
|
-
GetTags(this: Instance):
|
|
1017
|
+
GetTags(this: Instance): Array<string>;
|
|
1018
1018
|
HasTag(this: Instance, tag: string): boolean;
|
|
1019
1019
|
/**
|
|
1020
1020
|
* IsA returns true if the [Instance](https://developer.roblox.com/en-us/api-reference/class/Instance)'s class is **equivalent to** or a **subclass** of a given class. This function is similar to the **instanceof** operators in other languages, and is a form of [type introspection](https://en.wikipedia.org/wiki/Type_introspection). To ignore class inheritance, test the [ClassName](https://developer.roblox.com/en-us/api-reference/property/Instance/ClassName) property directly instead. For checking native Lua data types (number, string, etc) use the functions `type` and `typeof`.
|
|
@@ -6676,12 +6676,22 @@ interface CaptureService extends Instance {
|
|
|
6676
6676
|
* @deprecated
|
|
6677
6677
|
*/
|
|
6678
6678
|
readonly _nominal_CaptureService: unique symbol;
|
|
6679
|
-
CaptureScreenshot(this: CaptureService, onCaptureReady:
|
|
6680
|
-
PromptSaveCapturesToGallery
|
|
6681
|
-
|
|
6679
|
+
CaptureScreenshot(this: CaptureService, onCaptureReady: (captureContentId: string) => void): void;
|
|
6680
|
+
PromptSaveCapturesToGallery<T extends string>(
|
|
6681
|
+
this: CaptureService,
|
|
6682
|
+
contentIds: Array<T>,
|
|
6683
|
+
resultCallback: (results: Record<T, boolean>) => void,
|
|
6684
|
+
): void;
|
|
6685
|
+
PromptShareCapture(
|
|
6686
|
+
this: CaptureService,
|
|
6687
|
+
contentId: string,
|
|
6688
|
+
launchData: string,
|
|
6689
|
+
onAcceptedCallback: () => void,
|
|
6690
|
+
onDeniedCallback: () => void,
|
|
6691
|
+
): void;
|
|
6682
6692
|
readonly CaptureBegan: RBXScriptSignal<() => void>;
|
|
6683
6693
|
readonly CaptureEnded: RBXScriptSignal<() => void>;
|
|
6684
|
-
readonly CaptureSaved: RBXScriptSignal<(captureInfo:
|
|
6694
|
+
readonly CaptureSaved: RBXScriptSignal<(captureInfo: Record<string, unknown>) => void>;
|
|
6685
6695
|
readonly UserCaptureSaved: RBXScriptSignal<(captureContentId: string) => void>;
|
|
6686
6696
|
}
|
|
6687
6697
|
|
|
@@ -9695,20 +9705,20 @@ interface EditableMesh extends DataModelMesh {
|
|
|
9695
9705
|
readonly _nominal_EditableMesh: unique symbol;
|
|
9696
9706
|
AddTriangle(this: EditableMesh, vertexId0: number, vertexId1: number, vertexId2: number): number;
|
|
9697
9707
|
AddVertex(this: EditableMesh, p: Vector3): number;
|
|
9698
|
-
FindClosestPointOnSurface(this: EditableMesh, point: Vector3):
|
|
9708
|
+
FindClosestPointOnSurface(this: EditableMesh, point: Vector3): LuaTuple<[number, Vector3, Vector3]>;
|
|
9699
9709
|
FindClosestVertex(this: EditableMesh, toThisPoint: Vector3): number;
|
|
9700
|
-
FindVerticesWithinSphere(this: EditableMesh, center: Vector3, radius: number):
|
|
9701
|
-
GetAdjacentTriangles(this: EditableMesh, triangleId: number):
|
|
9702
|
-
GetAdjacentVertices(this: EditableMesh, vertexId: number):
|
|
9710
|
+
FindVerticesWithinSphere(this: EditableMesh, center: Vector3, radius: number): Array<number>;
|
|
9711
|
+
GetAdjacentTriangles(this: EditableMesh, triangleId: number): Array<number>;
|
|
9712
|
+
GetAdjacentVertices(this: EditableMesh, vertexId: number): Array<number>;
|
|
9703
9713
|
GetPosition(this: EditableMesh, vertexId: number): Vector3;
|
|
9704
|
-
GetTriangleVertices(this: EditableMesh, triangleId: number):
|
|
9705
|
-
GetTriangles(this: EditableMesh):
|
|
9714
|
+
GetTriangleVertices(this: EditableMesh, triangleId: number): LuaTuple<[number, number, number]>;
|
|
9715
|
+
GetTriangles(this: EditableMesh): Array<number>;
|
|
9706
9716
|
GetUV(this: EditableMesh, vertexId: number): Vector2;
|
|
9707
9717
|
GetVertexColor(this: EditableMesh, vertexId: number): Color3;
|
|
9708
9718
|
GetVertexColorAlpha(this: EditableMesh, vertexId: number): number;
|
|
9709
9719
|
GetVertexNormal(this: EditableMesh, vertexId: number): Vector3;
|
|
9710
|
-
GetVertices(this: EditableMesh):
|
|
9711
|
-
RaycastLocal(this: EditableMesh, origin: Vector3, direction: Vector3):
|
|
9720
|
+
GetVertices(this: EditableMesh): Array<number>;
|
|
9721
|
+
RaycastLocal(this: EditableMesh, origin: Vector3, direction: Vector3): LuaTuple<[number, Vector3, Vector3]>;
|
|
9712
9722
|
RemoveTriangle(this: EditableMesh, triangleId: number): void;
|
|
9713
9723
|
RemoveVertex(this: EditableMesh, vertexId: number): void;
|
|
9714
9724
|
SetPosition(this: EditableMesh, vertexId: number, p: Vector3): void;
|
|
@@ -10633,7 +10643,7 @@ interface EditableImage extends Instance {
|
|
|
10633
10643
|
/**
|
|
10634
10644
|
* Tags: CustomLuaState
|
|
10635
10645
|
*/
|
|
10636
|
-
ReadPixels(this: EditableImage, position: Vector2, size: Vector2):
|
|
10646
|
+
ReadPixels(this: EditableImage, position: Vector2, size: Vector2): Array<number>;
|
|
10637
10647
|
Resize(this: EditableImage, size: Vector2): void;
|
|
10638
10648
|
Rotate(this: EditableImage, degrees: number, changeSize: boolean): void;
|
|
10639
10649
|
/**
|
|
@@ -22925,7 +22935,7 @@ interface MemoryStoreSortedMap extends Instance {
|
|
|
22925
22935
|
*
|
|
22926
22936
|
* Tags: Yields
|
|
22927
22937
|
*/
|
|
22928
|
-
GetAsync(this: MemoryStoreSortedMap, key: string):
|
|
22938
|
+
GetAsync(this: MemoryStoreSortedMap, key: string): LuaTuple<[key?: string, sortKey?: string | number]>;
|
|
22929
22939
|
/**
|
|
22930
22940
|
* Gets items within a sorted range of keys.
|
|
22931
22941
|
*
|
|
@@ -22933,7 +22943,13 @@ interface MemoryStoreSortedMap extends Instance {
|
|
|
22933
22943
|
*
|
|
22934
22944
|
* Tags: Yields
|
|
22935
22945
|
*/
|
|
22936
|
-
GetRangeAsync(
|
|
22946
|
+
GetRangeAsync(
|
|
22947
|
+
this: MemoryStoreSortedMap,
|
|
22948
|
+
direction: CastsToEnum<Enum.SortDirection>,
|
|
22949
|
+
count: number,
|
|
22950
|
+
exclusiveLowerBound?: { key?: string; sortKey?: string | number },
|
|
22951
|
+
exclusiveUpperBound?: { key?: string; sortKey?: string | number },
|
|
22952
|
+
): Array<{ key: string; value: unknown; sortKey?: string | number }>;
|
|
22937
22953
|
/**
|
|
22938
22954
|
* Removes the provided key from the sorted map.
|
|
22939
22955
|
*
|
|
@@ -11,7 +11,7 @@ interface EnumItem {
|
|
|
11
11
|
Name: string;
|
|
12
12
|
Value: number;
|
|
13
13
|
EnumType: Enum;
|
|
14
|
-
IsA<T extends keyof typeof Enum
|
|
14
|
+
IsA<T extends Exclude<keyof typeof Enum, "GetEnums">>(name: T): this is typeof Enum[T][Exclude<keyof typeof Enum[T], "GetEnumItems">];
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
interface Enum {
|
package/include/roblox.d.ts
CHANGED
|
@@ -76,6 +76,7 @@ interface RequestAsyncRequest {
|
|
|
76
76
|
Method?: "GET" | "HEAD" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
77
77
|
Body?: string;
|
|
78
78
|
Headers?: HttpHeaders;
|
|
79
|
+
Compress?: Enum.HttpCompression;
|
|
79
80
|
}
|
|
80
81
|
|
|
81
82
|
interface RequestAsyncResponse {
|
|
@@ -1872,8 +1873,8 @@ interface OverlapParams {
|
|
|
1872
1873
|
*/
|
|
1873
1874
|
FilterDescendantsInstances: Array<Instance>;
|
|
1874
1875
|
/**
|
|
1875
|
-
* `RaycastFilterType.
|
|
1876
|
-
* used. `
|
|
1876
|
+
* `RaycastFilterType.Include` or `RaycastFilterType.Exclude`. Determines how the `FilterDescendantInstances` is
|
|
1877
|
+
* used. `Exclude` will skip the `FilterDescendantInstances`, and `Include` will exclusively include them.
|
|
1877
1878
|
*/
|
|
1878
1879
|
FilterType: Enum.RaycastFilterType;
|
|
1879
1880
|
/**
|
|
@@ -2055,9 +2056,9 @@ interface RaycastParams {
|
|
|
2055
2056
|
* Determines how the `FilterDescendantsInstances` list will be used, depending on the
|
|
2056
2057
|
* [RaycastFilterType](https://developer.roblox.com/api-reference/enum/RaycastFilterType) provided.
|
|
2057
2058
|
*
|
|
2058
|
-
* - `Enum.RaycastFilterType.
|
|
2059
|
+
* - `Enum.RaycastFilterType.Include` — Only [BaseParts](https://developer.roblox.com/api-reference/class/BasePart)
|
|
2059
2060
|
* which are descendants of objects in the filter list will be considered in the raycast operation.
|
|
2060
|
-
* - `Enum.RaycastFilterType.
|
|
2061
|
+
* - `Enum.RaycastFilterType.Exclude` — Every [BasePart](https://developer.roblox.com/api-reference/class/BasePart)
|
|
2061
2062
|
* in the game will be considered except those that are descendants of objects in the filter list.
|
|
2062
2063
|
*/
|
|
2063
2064
|
FilterType: Enum.RaycastFilterType;
|