@rbxts/types 1.0.686 → 1.0.687
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.
|
@@ -6626,6 +6626,7 @@ interface CollectionService extends Instance {
|
|
|
6626
6626
|
* **Warning:** When tagging an object, it is common that some resources are used to give the tag its functionality, e.g. event connections or tables. To prevent memory leaks, it is a good idea to clean these up (disconnect, set to nil, etc) when no longer needed for a tag. Do this when calling [CollectionService:RemoveTag](https://developer.roblox.com/en-us/api-reference/function/CollectionService/RemoveTag), calling [Instance:Destroy](https://developer.roblox.com/en-us/api-reference/function/Instance/Destroy) or in a function connected to a signal returned by [CollectionService:GetInstanceRemovedSignal](https://developer.roblox.com/en-us/api-reference/function/CollectionService/GetInstanceRemovedSignal).
|
|
6627
6627
|
*/
|
|
6628
6628
|
AddTag(this: CollectionService, instance: Instance, tag: string): void;
|
|
6629
|
+
AddTag(this: Instance, tag: string): void;
|
|
6629
6630
|
GetAllTags(this: CollectionService): unknown;
|
|
6630
6631
|
/**
|
|
6631
6632
|
* GetInstanceAdded is given a tag (a string) and returns a signal which fires under two conditions:
|
|
@@ -6668,6 +6669,7 @@ interface CollectionService extends Instance {
|
|
|
6668
6669
|
* This method is useful when you want to do something with multiple tags at once on an object. However, it would be inefficient to use this method to check for the existence of a single tag. For this, use [CollectionService:HasTag](https://developer.roblox.com/en-us/api-reference/function/CollectionService/HasTag) to check for a single tag.
|
|
6669
6670
|
*/
|
|
6670
6671
|
GetTags(this: CollectionService, instance: Instance): Array<string>;
|
|
6672
|
+
GetTags(this: Instance): Array<string>;
|
|
6671
6673
|
/**
|
|
6672
6674
|
* HasTag returns whether a given object has a tag
|
|
6673
6675
|
*
|
|
@@ -6677,12 +6679,14 @@ interface CollectionService extends Instance {
|
|
|
6677
6679
|
* By extension, any tags returned by a call to `CollectionServiec/GetTags` on an object will return true when used with this method.
|
|
6678
6680
|
*/
|
|
6679
6681
|
HasTag(this: CollectionService, instance: Instance, tag: string): boolean;
|
|
6682
|
+
HasTag(this: Instance, tag: string): boolean;
|
|
6680
6683
|
/**
|
|
6681
6684
|
* RemoveTag will remove some tag from some object. This method will not throw an error if the object did not have the tag in the first place. Successfully removing a tag will fire a signal created by [CollectionService:GetInstanceRemovedSignal](https://developer.roblox.com/en-us/api-reference/function/CollectionService/GetInstanceRemovedSignal) with the given tag.
|
|
6682
6685
|
*
|
|
6683
6686
|
* When removing a tag, it is common that some resources are used to give the tag its functionality, e.g. event connections or tables. To prevent memory leaks, it is a good idea to clean these up (disconnect, set to nil, etc) when no longer needed for a tag.
|
|
6684
6687
|
*/
|
|
6685
6688
|
RemoveTag(this: CollectionService, instance: Instance, tag: string): void;
|
|
6689
|
+
RemoveTag(this: Instance, tag: string): void;
|
|
6686
6690
|
/**
|
|
6687
6691
|
* This function fires when a [Configuration](https://developer.roblox.com/en-us/api-reference/class/Configuration), [CustomEvent](https://developer.roblox.com/en-us/api-reference/class/CustomEvent), [CustomEventReceiver](https://developer.roblox.com/en-us/api-reference/class/CustomEventReceiver), [Dialog](https://developer.roblox.com/en-us/api-reference/class/Dialog), or [VehicleSeat](https://developer.roblox.com/en-us/api-reference/class/VehicleSeat) is added to the [DataModel](https://developer.roblox.com/en-us/api-reference/class/DataModel).
|
|
6688
6692
|
* Tags: Deprecated, [object Object]
|