@rbxts/types 1.0.693 → 1.0.694
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.
|
@@ -10854,11 +10854,9 @@ interface DataStore extends GlobalDataStore {
|
|
|
10854
10854
|
key: string,
|
|
10855
10855
|
transformFunction: (
|
|
10856
10856
|
oldValue: O | undefined,
|
|
10857
|
-
keyInfo: DataStoreKeyInfo,
|
|
10858
|
-
) => LuaTuple<[newValue: R, userIds?: Array<number>, metadata?: object]>,
|
|
10859
|
-
): R
|
|
10860
|
-
? LuaTuple<[newValue: O | undefined, keyInfo: DataStoreKeyInfo]>
|
|
10861
|
-
: LuaTuple<[newValue: R, keyInfo: DataStoreKeyInfo]>;
|
|
10857
|
+
keyInfo: DataStoreKeyInfo | undefined,
|
|
10858
|
+
) => LuaTuple<[newValue: R | undefined, userIds?: Array<number>, metadata?: object]>,
|
|
10859
|
+
): LuaTuple<[newValue: R | undefined, keyInfo: DataStoreKeyInfo]>;
|
|
10862
10860
|
RemoveAsync<T>(this: DataStore, key: string): LuaTuple<[T | undefined, DataStoreKeyInfo | undefined]>;
|
|
10863
10861
|
/**
|
|
10864
10862
|
* 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).
|
|
@@ -10931,11 +10929,11 @@ interface OrderedDataStore extends GlobalDataStore {
|
|
|
10931
10929
|
IncrementAsync(this: OrderedDataStore, key: string, delta?: number): number;
|
|
10932
10930
|
RemoveAsync(this: OrderedDataStore, key: string): number | undefined;
|
|
10933
10931
|
SetAsync(this: OrderedDataStore, key: string, value?: unknown): void;
|
|
10934
|
-
UpdateAsync
|
|
10932
|
+
UpdateAsync(
|
|
10935
10933
|
this: OrderedDataStore,
|
|
10936
10934
|
key: string,
|
|
10937
|
-
transformFunction: (oldValue:
|
|
10938
|
-
):
|
|
10935
|
+
transformFunction: (oldValue: number | undefined) => number | undefined,
|
|
10936
|
+
): number | undefined;
|
|
10939
10937
|
/**
|
|
10940
10938
|
* 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.
|
|
10941
10939
|
*
|