16 lines
392 B
Haxe
16 lines
392 B
Haxe
package funkin.util.tools;
|
|
|
|
/**
|
|
* Implement this on a class to enable `Array<T>.deepClone()` to work on it.
|
|
* NOTE: T should be the type of the class that implements this interface.
|
|
*/
|
|
@:nullSafety
|
|
interface ICloneable<T>
|
|
{
|
|
/**
|
|
* Create a clone of this object, a new instance with identical property values.
|
|
* @return The clone of this object.
|
|
*/
|
|
public function clone():T;
|
|
}
|