@rbxts/types 1.0.602 → 1.0.605

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.
@@ -2073,13 +2073,7 @@ interface AssetService extends Instance {
2073
2073
  * Clones a place which has a placeId equal to the given templatePlaceID, placing it into the inventory of the given player with the given name and description, if they accept when prompted. This method cannot be used to clone places that you do not own, or those which have disabled the use of the CreatePlace API in their place's configuration.
2074
2074
  * Tags: Yields
2075
2075
  */
2076
- CreatePlaceInPlayerInventoryAsync(
2077
- this: AssetService,
2078
- player: Player,
2079
- placeName: string,
2080
- templatePlaceID: number,
2081
- description?: string,
2082
- ): number;
2076
+ CreatePlaceInPlayerInventoryAsync(this: AssetService, player: Player, placeName: string, templatePlaceID: number, description?: string): number;
2083
2077
  /**
2084
2078
  * Returns an array of assetIds that are contained in a specified package.
2085
2079
  * Tags: Yields
@@ -24481,7 +24475,7 @@ interface Workspace extends WorldRoot {
24481
24475
  * workspace.Terrain.WaterColor = Color3.new(0, 1, 0) -- make the water green
24482
24476
  * Tags: ReadOnly, NotReplicated
24483
24477
  */
24484
- Terrain: Terrain;
24478
+ readonly Terrain: Terrain;
24485
24479
  /**
24486
24480
  * Returns the number of [BasePart](https://developer.roblox.com/en-us/api-reference/class/BasePart)s that are deemed physically active, due to being recently under the influence of physics.
24487
24481
  *
@@ -24787,7 +24781,7 @@ interface DataStorePages extends Pages<{ key: string; value: unknown }> {
24787
24781
  *
24788
24782
  * * [Data Stores](https://developer.roblox.com/en-us/articles/data-store), an in-depth guide on data structure, management, error handling, etc.
24789
24783
  */
24790
- interface DataStoreVersionPages extends Pages {
24784
+ interface DataStoreVersionPages extends Pages<DataStoreObjectVersionInfo> {
24791
24785
  /**
24792
24786
  * **DO NOT USE!**
24793
24787
  *
@@ -24796,7 +24790,6 @@ interface DataStoreVersionPages extends Pages {
24796
24790
  * @deprecated
24797
24791
  */
24798
24792
  readonly _nominal_DataStoreVersionPages: unique symbol;
24799
- GetCurrentPage(this: Pages): Array<DataStoreObjectVersionInfo>;
24800
24793
  }
24801
24794
 
24802
24795
  /** FriendPages is a special version of the [Pages](https://developer.roblox.com/en-us/api-reference/class/Pages) returned by [Players:GetFriendsAsync](https://developer.roblox.com/en-us/api-reference/function/Players/GetFriendsAsync). The items contained within describe information about a player's friends, and have the following structure:
@@ -2762,7 +2762,7 @@ interface ScriptDebugger extends Instance {
2762
2762
  * Returns a dictionary of all variables that are present in the global environment of the stack frame, where the keys are the names of the variables, and the values are the actual values of the variables.
2763
2763
  * Each stack frame might see different global variables if function environments are different.
2764
2764
  */
2765
- GetGlobals(this: ScriptDebugger): Map<string, unknown>;
2765
+ GetGlobals(this: ScriptDebugger, stackFrame?: number): Map<string, unknown>;
2766
2766
  /**
2767
2767
  * Returns a dictionary of all local variables in the specified stack frame, where the keys are the names of the variables, and the values are the actual values of the variables.
2768
2768
  */
package/include/lua.d.ts CHANGED
@@ -52,18 +52,18 @@ declare function pcall<T extends Array<any>, U>(
52
52
  func: (...args: T) => U,
53
53
  ): LuaTuple<
54
54
  U extends [infer A]
55
- ? [true, A] | [false, string]
55
+ ? [true, A] | [false, unknown]
56
56
  : U extends [infer A, infer B]
57
- ? [true, A, B] | [false, string, undefined]
57
+ ? [true, A, B] | [false, unknown, undefined]
58
58
  : U extends [infer A, infer B, infer C]
59
- ? [true, A, B, C] | [false, string, undefined, undefined]
59
+ ? [true, A, B, C] | [false, unknown, undefined, undefined]
60
60
  : U extends [infer A, infer B, infer C, infer D]
61
- ? [true, A, B, C, D] | [false, string, undefined, undefined, undefined]
61
+ ? [true, A, B, C, D] | [false, unknown, undefined, undefined, undefined]
62
62
  : U extends [infer A, infer B, infer C, infer D, infer E]
63
- ? [true, A, B, C, D, E] | [false, string, undefined, undefined, undefined, undefined]
63
+ ? [true, A, B, C, D, E] | [false, unknown, undefined, undefined, undefined, undefined]
64
64
  : U extends [infer A, infer B, infer C, infer D, infer E, infer F]
65
- ? [true, A, B, C, D, E, F] | [false, string, undefined, undefined, undefined, undefined, undefined]
66
- : [true, U] | [false, string]
65
+ ? [true, A, B, C, D, E, F] | [false, unknown, undefined, undefined, undefined, undefined, undefined]
66
+ : [true, U] | [false, unknown]
67
67
  >;
68
68
 
69
69
  /** Calls the function func with the given arguments in protected mode. This means that any error inside func is not propagated; instead, pcall catches the error and returns a status code. Its first result is the status code (a boolean), which is true if the call succeeds without errors. In such case, pcall also returns all results from the call, after this first result. In case of any error, pcall returns false plus the error message. */
@@ -72,18 +72,18 @@ declare function pcall<T extends Array<any>, U>(
72
72
  ...args: T
73
73
  ): LuaTuple<
74
74
  U extends [infer A]
75
- ? [true, A] | [false, string]
75
+ ? [true, A] | [false, unknown]
76
76
  : U extends [infer A, infer B]
77
- ? [true, A, B] | [false, string, undefined]
77
+ ? [true, A, B] | [false, unknown, undefined]
78
78
  : U extends [infer A, infer B, infer C]
79
- ? [true, A, B, C] | [false, string, undefined, undefined]
79
+ ? [true, A, B, C] | [false, unknown, undefined, undefined]
80
80
  : U extends [infer A, infer B, infer C, infer D]
81
- ? [true, A, B, C, D] | [false, string, undefined, undefined, undefined]
81
+ ? [true, A, B, C, D] | [false, unknown, undefined, undefined, undefined]
82
82
  : U extends [infer A, infer B, infer C, infer D, infer E]
83
- ? [true, A, B, C, D, E] | [false, string, undefined, undefined, undefined, undefined]
83
+ ? [true, A, B, C, D, E] | [false, unknown, undefined, undefined, undefined, undefined]
84
84
  : U extends [infer A, infer B, infer C, infer D, infer E, infer F]
85
- ? [true, A, B, C, D, E, F] | [false, string, undefined, undefined, undefined, undefined, undefined]
86
- : [true, U] | [false, string]
85
+ ? [true, A, B, C, D, E, F] | [false, unknown, undefined, undefined, undefined, undefined, undefined]
86
+ : [true, U] | [false, unknown]
87
87
  >;
88
88
 
89
89
  /** Calls the function func with the given arguments in protected mode. This means that any error inside func is not propagated; instead, xpcall catches the error and returns a status code. Its first result is the status code (a boolean), which is true if the call succeeds without errors. In such case, xpcall also returns all results from the call, after this first result. In case of any error, pcall returns false plus the error message. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/types",
3
- "version": "1.0.602",
3
+ "version": "1.0.605",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },