@rbxts/types 1.0.601 → 1.0.602

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.
@@ -10218,7 +10218,7 @@ interface GlobalDataStore extends Instance {
10218
10218
  * * [Data Stores](https://developer.roblox.com/en-us/articles/data-store), an in-depth guide on data structure, management, error handling, etc.
10219
10219
  * Tags: Yields
10220
10220
  */
10221
- GetAsync(this: GlobalDataStore, key: string): unknown;
10221
+ readonly GetAsync: unknown;
10222
10222
  /**
10223
10223
  * This function increments the value of a key by the provided amount (both must be integers).
10224
10224
  *
@@ -10230,7 +10230,7 @@ interface GlobalDataStore extends Instance {
10230
10230
  * * [Data Stores](https://developer.roblox.com/en-us/articles/data-store), an in-depth guide on data structure, management, error handling, etc.
10231
10231
  * Tags: Yields
10232
10232
  */
10233
- IncrementAsync(this: GlobalDataStore, key: string, delta?: number, userIds?: Array<any>, options?: DataStoreIncrementOptions): unknown;
10233
+ readonly IncrementAsync: unknown;
10234
10234
  /**
10235
10235
  * This function marks the specified key as deleted by creating a new “tombstone” version of the key. Prior to this, it returns the latest version prior to the remove call.
10236
10236
  *
@@ -10248,7 +10248,7 @@ interface GlobalDataStore extends Instance {
10248
10248
  * * [Data Stores](https://developer.roblox.com/en-us/articles/data-store), an in-depth guide on data structure, management, error handling, etc.
10249
10249
  * Tags: Yields
10250
10250
  */
10251
- RemoveAsync(this: GlobalDataStore, key: string): unknown;
10251
+ readonly RemoveAsync: unknown;
10252
10252
  /**
10253
10253
  * This function sets the latest value, [UserIds](https://developer.roblox.com/en-us/api-reference/property/Player/UserId), and metadata for the given key.
10254
10254
  *
@@ -10272,7 +10272,7 @@ interface GlobalDataStore extends Instance {
10272
10272
  * * [Data Stores](https://developer.roblox.com/en-us/articles/data-store), an in-depth guide on data structure, management, error handling, etc.
10273
10273
  * Tags: Yields
10274
10274
  */
10275
- SetAsync(this: GlobalDataStore, key: string, value?: unknown): void;
10275
+ readonly SetAsync: unknown;
10276
10276
  /**
10277
10277
  * This function retrieves the value and metadata of a key from the data store and updates it with a new value determined by the callback function specified through the second parameter.
10278
10278
  *
@@ -10312,11 +10312,7 @@ interface GlobalDataStore extends Instance {
10312
10312
  * * [Data Stores](https://developer.roblox.com/en-us/articles/data-store), an in-depth guide on data structure, management, error handling, etc.
10313
10313
  * Tags: Yields
10314
10314
  */
10315
- UpdateAsync<O, R>(
10316
- this: GlobalDataStore,
10317
- key: string,
10318
- transformFunction: (oldValue: O | undefined) => R,
10319
- ): R extends undefined ? O | undefined : R;
10315
+ readonly UpdateAsync: unknown;
10320
10316
  }
10321
10317
 
10322
10318
  interface DataStore extends GlobalDataStore {
@@ -10420,6 +10416,12 @@ interface OrderedDataStore extends GlobalDataStore {
10420
10416
  GetAsync(this: OrderedDataStore, key: string): number | undefined;
10421
10417
  IncrementAsync(this: OrderedDataStore, key: string, delta?: number): number;
10422
10418
  RemoveAsync(this: OrderedDataStore, key: string): number;
10419
+ SetAsync(this: GlobalDataStore, key: string, value?: unknown): void;
10420
+ UpdateAsync<O, R>(
10421
+ this: GlobalDataStore,
10422
+ key: string,
10423
+ transformFunction: (oldValue: O | undefined) => R,
10424
+ ): R extends undefined ? O | undefined : R;
10423
10425
  /**
10424
10426
  * Returns a [DataStorePages](https://developer.roblox.com/en-us/api-reference/class/DataStorePages) object. The sort order is determined by **ascending**, the length of each page by **pageSize**, and **minValue** /**maxValue** are optional parameters which filter the results.
10425
10427
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/types",
3
- "version": "1.0.601",
3
+ "version": "1.0.602",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },