@rbxts/types 1.0.580 → 1.0.583

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.
@@ -13875,7 +13875,7 @@ interface GuiService extends Instance {
13875
13875
  * Removes a group that was created with [GuiService:AddSelectionParent](https://developer.roblox.com/en-us/api-reference/function/GuiService/AddSelectionParent) or [GuiService:AddSelectionTuple](https://developer.roblox.com/en-us/api-reference/function/GuiService/AddSelectionTuple).
13876
13876
  */
13877
13877
  RemoveSelectionGroup(this: GuiService, selectionName: string): void;
13878
- Select(this: GuiService, selectionParent: Selection): void;
13878
+ Select(this: GuiService, selectionParent: Instance): void;
13879
13879
  /**
13880
13880
  * Opens or closes the player Emotes menu.
13881
13881
  */
@@ -1655,9 +1655,27 @@ interface Random {
1655
1655
  * @deprecated
1656
1656
  */
1657
1657
  readonly _nominal_Random: unique symbol;
1658
+ /**
1659
+ * Returns a pseudorandom integer uniformly distributed over [min, max].
1660
+ */
1658
1661
  NextInteger(this: Random, min: number, max: number): number;
1662
+ /**
1663
+ * Returns a pseudorandom number uniformly distributed over [0, 1).
1664
+ */
1659
1665
  NextNumber(this: Random): number;
1666
+ /**
1667
+ * Returns a pseudorandom number uniformly distributed over [min, max).
1668
+ */
1660
1669
  NextNumber(this: Random, min: number, max: number): number;
1670
+ /**
1671
+ * Returns a unit vector with a pseudorandom direction.
1672
+ *
1673
+ * Vectors returned from this function are uniformly distributed over the unit sphere.
1674
+ */
1675
+ NextUnitVector(this: Random): Vector3;
1676
+ /**
1677
+ * Returns a new Random object with the same state as the original.
1678
+ */
1661
1679
  Clone(this: Random): Random;
1662
1680
  }
1663
1681
 
@@ -2209,16 +2227,18 @@ declare namespace task {
2209
2227
  /** Yields the calling script and queues it for serial execution following the completion of the parallel execution phase of the frame. */
2210
2228
  function synchronize(): void;
2211
2229
  /** Defers the passed thread or function to be resumed at the end of the current resumption cycle. */
2212
- function defer<T extends Array<any>>(callback: (...args: T) => void, ...args: T): void;
2213
- function defer(thread: thread, ...args: Array<unknown>): void;
2230
+ function defer<T extends Array<any>>(callback: (...args: T) => void, ...args: T): thread;
2231
+ function defer(thread: thread, ...args: Array<unknown>): thread;
2214
2232
  /** Delays the passed thread or function until the given duration has elapsed. Resumes on engine Heartbeat. */
2215
- function delay<T extends Array<any>>(duration: number, callback: (...args: T) => void, ...args: T): void;
2216
- function delay(duration: number, thread: thread, ...args: Array<unknown>): void;
2233
+ function delay<T extends Array<any>>(duration: number, callback: (...args: T) => void, ...args: T): thread;
2234
+ function delay(duration: number, thread: thread, ...args: Array<unknown>): thread;
2217
2235
  /** Resumes the passed thread or function instantly using the engine's scheduler. */
2218
- function spawn<T extends Array<any>>(callback: (...args: T) => void, ...args: T): void;
2219
- function spawn(thread: thread, ...args: Array<unknown>): void;
2236
+ function spawn<T extends Array<any>>(callback: (...args: T) => void, ...args: T): thread;
2237
+ function spawn(thread: thread, ...args: Array<unknown>): thread;
2220
2238
  /** Delay the current thread until the given duration has elasped. Resumes on engine Heartbeat. */
2221
2239
  function wait(duration?: number): number;
2240
+ /** Cancels a thread, preventing it from being resumed. */
2241
+ function cancel(thread: thread): void;
2222
2242
  }
2223
2243
 
2224
2244
  interface GettableCores {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/types",
3
- "version": "1.0.580",
3
+ "version": "1.0.583",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },