UNPKG

370 BTypeScriptView Raw
1/**
2 * 浅拷贝/深拷贝
3 * @param obj 对象
4 */
5export declare function clone<T>(obj: T): T;
6
7/**
8 * 浅拷贝/深拷贝
9 * @param obj 对象
10 * @param deep 是否深拷贝
11 */
12export declare function clone<T>(obj: T, deep: boolean): T;
13
14declare module './ctor' {
15 interface XEUtilsMethods {
16 clone: typeof clone;
17 }
18}
19
20export default clone