@rbxts/types 1.0.760 → 1.0.761

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): unknown;
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: Callback): void;
6680
- PromptSaveCapturesToGallery(this: CaptureService, contentIds: Array<any>, resultCallback: Callback): void;
6681
- PromptShareCapture(this: CaptureService, contentId: string, launchData: string, onAcceptedCallback: Callback, onDeniedCallback: Callback): void;
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: object) => void>;
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): unknown;
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): unknown;
9701
- GetAdjacentTriangles(this: EditableMesh, triangleId: number): unknown;
9702
- GetAdjacentVertices(this: EditableMesh, vertexId: number): unknown;
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): unknown;
9705
- GetTriangles(this: EditableMesh): unknown;
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): unknown;
9711
- RaycastLocal(this: EditableMesh, origin: Vector3, direction: Vector3): unknown;
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): unknown;
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): unknown;
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(this: MemoryStoreSortedMap, direction: CastsToEnum<Enum.SortDirection>, count: number, exclusiveLowerBound: unknown, exclusiveUpperBound: unknown): unknown;
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>(name: T): this is typeof Enum[T][Exclude<keyof typeof Enum[T], "GetEnumItems">];
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 {
@@ -1872,8 +1872,8 @@ interface OverlapParams {
1872
1872
  */
1873
1873
  FilterDescendantsInstances: Array<Instance>;
1874
1874
  /**
1875
- * `RaycastFilterType.Whitelist` or `RaycastFilterType.Blacklist`. Determines how the `FilterDescendantInstances` is
1876
- * used. `Blacklist` will skip the `FilterDescendantInstances`, and `Whitelist` will exclusively include them.
1875
+ * `RaycastFilterType.Include` or `RaycastFilterType.Exclude`. Determines how the `FilterDescendantInstances` is
1876
+ * used. `Exclude` will skip the `FilterDescendantInstances`, and `Include` will exclusively include them.
1877
1877
  */
1878
1878
  FilterType: Enum.RaycastFilterType;
1879
1879
  /**
@@ -2055,9 +2055,9 @@ interface RaycastParams {
2055
2055
  * Determines how the `FilterDescendantsInstances` list will be used, depending on the
2056
2056
  * [RaycastFilterType](https://developer.roblox.com/api-reference/enum/RaycastFilterType) provided.
2057
2057
  *
2058
- * - `Enum.RaycastFilterType.Whitelist` — Only [BaseParts](https://developer.roblox.com/api-reference/class/BasePart)
2058
+ * - `Enum.RaycastFilterType.Include` — Only [BaseParts](https://developer.roblox.com/api-reference/class/BasePart)
2059
2059
  * which are descendants of objects in the filter list will be considered in the raycast operation.
2060
- * - `Enum.RaycastFilterType.Blacklist` — Every [BasePart](https://developer.roblox.com/api-reference/class/BasePart)
2060
+ * - `Enum.RaycastFilterType.Exclude` — Every [BasePart](https://developer.roblox.com/api-reference/class/BasePart)
2061
2061
  * in the game will be considered except those that are descendants of objects in the filter list.
2062
2062
  */
2063
2063
  FilterType: Enum.RaycastFilterType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/types",
3
- "version": "1.0.760",
3
+ "version": "1.0.761",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },