You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
350 B
20 lines
350 B
/**
|
|
* 浅拷贝/深拷贝
|
|
* @param obj 对象
|
|
*/
|
|
export declare function clone<T>(obj: T): T;
|
|
|
|
/**
|
|
* 浅拷贝/深拷贝
|
|
* @param obj 对象
|
|
* @param deep 是否深拷贝
|
|
*/
|
|
export declare function clone<T>(obj: T, deep: boolean): T;
|
|
|
|
declare module './ctor' {
|
|
interface XEUtilsMethods {
|
|
clone: typeof clone;
|
|
}
|
|
}
|
|
|
|
export default clone
|
|
|