@rbxts/types 1.0.635 → 1.0.636
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.
|
@@ -10496,7 +10496,7 @@ interface DataStore extends GlobalDataStore {
|
|
|
10496
10496
|
): R extends undefined
|
|
10497
10497
|
? LuaTuple<[newValue: O | undefined, keyInfo: DataStoreKeyInfo]>
|
|
10498
10498
|
: LuaTuple<[newValue: R, keyInfo: DataStoreKeyInfo]>;
|
|
10499
|
-
RemoveAsync<T>(this: DataStore, key: string): LuaTuple<[T | undefined, DataStoreKeyInfo]>;
|
|
10499
|
+
RemoveAsync<T>(this: DataStore, key: string): LuaTuple<[T | undefined, DataStoreKeyInfo | undefined]>;
|
|
10500
10500
|
/**
|
|
10501
10501
|
* This function retrieves the specified key version as well as a [DataStoreKeyInfo](https://developer.roblox.com/en-us/api-reference/class/DataStoreKeyInfo) instance. A version identifier can be found through [DataStore:ListVersionsAsync](https://developer.roblox.com/en-us/api-reference/function/DataStore/ListVersionsAsync) or alternatively be the identifier returned by [GlobalDataStore:SetAsync](https://developer.roblox.com/en-us/api-reference/function/GlobalDataStore/SetAsync).
|
|
10502
10502
|
*
|
|
@@ -10562,7 +10562,7 @@ interface OrderedDataStore extends GlobalDataStore {
|
|
|
10562
10562
|
readonly _nominal_OrderedDataStore: unique symbol;
|
|
10563
10563
|
GetAsync(this: OrderedDataStore, key: string): number | undefined;
|
|
10564
10564
|
IncrementAsync(this: OrderedDataStore, key: string, delta?: number): number;
|
|
10565
|
-
RemoveAsync(this: OrderedDataStore, key: string): number;
|
|
10565
|
+
RemoveAsync(this: OrderedDataStore, key: string): number | undefined;
|
|
10566
10566
|
SetAsync(this: OrderedDataStore, key: string, value?: unknown): void;
|
|
10567
10567
|
UpdateAsync<O, R>(
|
|
10568
10568
|
this: OrderedDataStore,
|
|
@@ -21434,7 +21434,12 @@ interface MemoryStoreQueue extends Instance {
|
|
|
21434
21434
|
* This method does not automatically delete the returned items from the queue but makes them invisible to other ReadAsync calls for the period of the invisibility timeout. The items must be explicitly removed from the queue with [MemoryStoreQueue:RemoveAsync](https://developer.roblox.com/en-us/api-reference/function/MemoryStoreQueue/RemoveAsync) before the invisibility timeout expires. The invisibility timeout defaults to 30 seconds unless a different value was provided in [MemoryStoreService:GetQueue](https://developer.roblox.com/en-us/api-reference/function/MemoryStoreService/GetQueue).
|
|
21435
21435
|
* Tags: Yields
|
|
21436
21436
|
*/
|
|
21437
|
-
ReadAsync(
|
|
21437
|
+
ReadAsync(
|
|
21438
|
+
this: MemoryStoreQueue,
|
|
21439
|
+
count: number,
|
|
21440
|
+
allOrNothing?: boolean,
|
|
21441
|
+
waitTimeout?: number,
|
|
21442
|
+
): LuaTuple<[items: Array<unknown>, id: string]>;
|
|
21438
21443
|
/**
|
|
21439
21444
|
* Removes an item or items previously read from the queue. This method uses the identifier returned by [MemoryStoreQueue:ReadAsync](https://developer.roblox.com/en-us/api-reference/function/MemoryStoreQueue/ReadAsync) to identify the items to remove. If called after the invisibility timeout has expired, the call has no effect.
|
|
21440
21445
|
* Tags: Yields
|