lodash-decorators
Version:
A collection of decorators using lodash at it's core.
23 lines (22 loc) • 595 B
TypeScript
/**
* Assigns all properties from an object to another object including non enumerable
* properties.
* @export
* @template T
* @template U
* @param {T} to
* @param {U} from
* @param {string[]} [excludes=[]]
* @returns {T}
*/
export declare function assignAll<T, U>(to: T, from: U, excludes?: string[]): T;
/**
* Assigns a property from one object to another while retaining descriptor properties.
* @export
* @template T
* @template U
* @param {T} to
* @param {U} from
* @param {string} prop
*/
export declare function assignProperty<T, U>(to: T, from: U, prop: string): void;