1
This commit is contained in:
38
20220330_Vote/Ewide.Web.Entry/wwwroot/lib/xe-utils/assign.d.ts
vendored
Normal file
38
20220330_Vote/Ewide.Web.Entry/wwwroot/lib/xe-utils/assign.d.ts
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
/**
|
||||
* 将一个或多个源对象复制到目标对象中
|
||||
* @param target 目标对象
|
||||
* @param source1 要从中复制属性的源对象
|
||||
*/
|
||||
export declare function assign<T, U>(target: T, source1: U): T & U;
|
||||
|
||||
/**
|
||||
* 将一个或多个源对象复制到目标对象中
|
||||
* @param target 目标对象
|
||||
* @param source1 要从中复制属性的源对象1
|
||||
* @param source2 要从中复制属性的源对象2
|
||||
*/
|
||||
export declare function assign<T, U, V>(target: T, source1: U, source2: V): T & U & V;
|
||||
|
||||
/**
|
||||
* 将一个或多个源对象复制到目标对象中
|
||||
* @param target 目标对象
|
||||
* @param source1 要从中复制属性的源对象1
|
||||
* @param source2 要从中复制属性的源对象2
|
||||
* @param source3 要从中复制属性的源对象3
|
||||
*/
|
||||
export declare function assign<T, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;
|
||||
|
||||
/**
|
||||
* 将一个或多个源对象复制到目标对象中
|
||||
* @param target 目标对象
|
||||
* @param sources 要从中复制属性的一个或多个源对象
|
||||
*/
|
||||
export declare function assign(target: any, ...sources: any[]): any;
|
||||
|
||||
declare module './ctor' {
|
||||
interface XEUtilsMethods {
|
||||
assign: typeof assign;
|
||||
}
|
||||
}
|
||||
|
||||
export default assign
|
||||
Reference in New Issue
Block a user