/** ## Copy : 提供一个自定义克隆接口,`深度遍历` * - clone():Copy @example ```ts class A implements Copy{ constructor(public a:number){} clone(){ return new A(this.a) } } let a=new A(1) let b=a.clone() assert(a.a==b.a) assert(a!=b) ``` @category Interface */ export interface Copy { clone(): Copy; } /** ## `implements_copy` : duck type to judge Copy type @category Interface */ export declare function implements_copy(value: unknown): value is Copy; //# sourceMappingURL=copy.d.ts.map