From 1df83f13242405bc7e3ba00992be22aeaf36dea9 Mon Sep 17 00:00:00 2001 From: AdamRaichu <91494019+AdamRaichu@users.noreply.github.com> Date: Sat, 24 Aug 2024 12:33:11 -0400 Subject: [PATCH 1/2] add `DataStoreKeyInfo` (was missing types in None.d.ts) --- include/customDefinitions.d.ts | 54 ++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/include/customDefinitions.d.ts b/include/customDefinitions.d.ts index d89b16eb1e..6b52f85bd0 100644 --- a/include/customDefinitions.d.ts +++ b/include/customDefinitions.d.ts @@ -328,6 +328,60 @@ interface DataStoreService extends Instance { interface DataStoreVersionPages extends Pages {} +interface DataStoreKeyInfo extends Instance { + /** + * This property indicates the date and time the object was created, formatted as the number of milliseconds since epoch. + * + * See Also + * -------- + * + * * [Data Stores](https://developer.roblox.com/en-us/articles/data-store), an in-depth guide on data structure, management, error handling, etc. + * + * Tags: NotReplicated + */ + readonly CreatedTime: number; + /** + * This property indicates the date and time the object was last updated, formatted as the number of milliseconds since epoch. + * + * See Also + * -------- + * + * * [Data Stores](https://developer.roblox.com/en-us/articles/data-store), an in-depth guide on data structure, management, error handling, etc. + * + * Tags: NotReplicated + */ + readonly UpdatedTime: number; + /** + * This property uniquely identifies the version of the object. It can be passed to [DataStore:GetVersionAsync](https://developer.roblox.com/en-us/api-reference/function/DataStore/GetVersionAsync) or [DataStore:RemoveVersionAsync](https://developer.roblox.com/en-us/api-reference/function/DataStore/RemoveVersionAsync) to get or remove the version respectively. + * + * See Also + * -------- + * + * * [Data Stores](https://developer.roblox.com/en-us/articles/data-store), an in-depth guide on data structure, management, error handling, etc. + * + * Tags: NotReplicated + */ + readonly Version: string; + /** + * This function returns the metadata associated with the latest version of the object. + * + * See Also + * -------- + * + * * [Data Stores](https://developer.roblox.com/en-us/articles/data-store), an in-depth guide on data structure, management, error handling, etc. + */ + GetMetadata(this: DataStoreKeyInfo): object; + /** + * This function returns an array of [UserIds](https://developer.roblox.com/en-us/api-reference/property/Player/UserId) tagged with the object. This information is useful for adhering to [GDPR](https://developer.roblox.com/articles/managing-personal-information) policies. + * + * See Also + * -------- + * + * * [Data Stores](https://developer.roblox.com/en-us/articles/data-store), an in-depth guide on data structure, management, error handling, etc. + */ + GetUserIds(this: DataStoreKeyInfo): Array; +} + interface Dialog extends Instance { readonly DialogChoiceSelected: RBXScriptSignal<(player: Player, dialogChoice: Dialog) => void>; GetCurrentPlayers(this: Dialog): Array; From f18483fb1b35d7ed1001465e1796af0b8554d570 Mon Sep 17 00:00:00 2001 From: AdamRaichu <91494019+AdamRaichu@users.noreply.github.com> Date: Sat, 24 Aug 2024 13:19:12 -0400 Subject: [PATCH 2/2] remove unneeded information --- include/customDefinitions.d.ts | 50 ---------------------------------- 1 file changed, 50 deletions(-) diff --git a/include/customDefinitions.d.ts b/include/customDefinitions.d.ts index 6b52f85bd0..9c7867452c 100644 --- a/include/customDefinitions.d.ts +++ b/include/customDefinitions.d.ts @@ -329,56 +329,6 @@ interface DataStoreService extends Instance { interface DataStoreVersionPages extends Pages {} interface DataStoreKeyInfo extends Instance { - /** - * This property indicates the date and time the object was created, formatted as the number of milliseconds since epoch. - * - * See Also - * -------- - * - * * [Data Stores](https://developer.roblox.com/en-us/articles/data-store), an in-depth guide on data structure, management, error handling, etc. - * - * Tags: NotReplicated - */ - readonly CreatedTime: number; - /** - * This property indicates the date and time the object was last updated, formatted as the number of milliseconds since epoch. - * - * See Also - * -------- - * - * * [Data Stores](https://developer.roblox.com/en-us/articles/data-store), an in-depth guide on data structure, management, error handling, etc. - * - * Tags: NotReplicated - */ - readonly UpdatedTime: number; - /** - * This property uniquely identifies the version of the object. It can be passed to [DataStore:GetVersionAsync](https://developer.roblox.com/en-us/api-reference/function/DataStore/GetVersionAsync) or [DataStore:RemoveVersionAsync](https://developer.roblox.com/en-us/api-reference/function/DataStore/RemoveVersionAsync) to get or remove the version respectively. - * - * See Also - * -------- - * - * * [Data Stores](https://developer.roblox.com/en-us/articles/data-store), an in-depth guide on data structure, management, error handling, etc. - * - * Tags: NotReplicated - */ - readonly Version: string; - /** - * This function returns the metadata associated with the latest version of the object. - * - * See Also - * -------- - * - * * [Data Stores](https://developer.roblox.com/en-us/articles/data-store), an in-depth guide on data structure, management, error handling, etc. - */ - GetMetadata(this: DataStoreKeyInfo): object; - /** - * This function returns an array of [UserIds](https://developer.roblox.com/en-us/api-reference/property/Player/UserId) tagged with the object. This information is useful for adhering to [GDPR](https://developer.roblox.com/articles/managing-personal-information) policies. - * - * See Also - * -------- - * - * * [Data Stores](https://developer.roblox.com/en-us/articles/data-store), an in-depth guide on data structure, management, error handling, etc. - */ GetUserIds(this: DataStoreKeyInfo): Array; }