mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
23 lines
824 B
TypeScript
23 lines
824 B
TypeScript
// Type definitions for object-assign-deep 0.4
|
|
// Project: https://github.com/saikojosh/Object-Assign-Deep#readme
|
|
// Definitions by: Nick Clifford <https://github.com/nickbclifford>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.1
|
|
|
|
declare const objectAssignDeep: ObjectConstructor['assign'];
|
|
|
|
interface Options {
|
|
arrayBehaviour: "replace" | "merge";
|
|
}
|
|
|
|
interface objectAssignDeep {
|
|
noMutate: ObjectConstructor['assign'];
|
|
|
|
withOptions<T, U>(target: T, objects: [U], options: Options): T & U;
|
|
withOptions<T, U, V>(target: T, objects: [U, V], options: Options): T & U & V;
|
|
withOptions<T, U, V, W>(target: T, objects: [U, V, W], options: Options): T & U & V & W;
|
|
withOptions(target: any, objects: any[], options: Options): any;
|
|
}
|
|
|
|
export = objectAssignDeep;
|