mirror of
https://github.com/galacean/engine.git
synced 2026-06-10 01:32:51 +08:00
17 lines
253 B
TypeScript
17 lines
253 B
TypeScript
/**
|
|
* Copy interface.
|
|
*/
|
|
export interface ICopy<S, T> {
|
|
/**
|
|
* Copy from source object.
|
|
* @returns This object
|
|
*/
|
|
copyFrom(source: S): T;
|
|
|
|
/**
|
|
* Copy to target object.
|
|
* @returns This target object
|
|
*/
|
|
copyTo?(target: S): S;
|
|
}
|