mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-21 05:20:24 +08:00
18 lines
552 B
TypeScript
18 lines
552 B
TypeScript
// Type definitions for deepmerge 1.3
|
|
// Project: https://github.com/KyleAMathews/deepmerge
|
|
// Definitions by: marvinscharle <https://github.com/marvinscharle>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
export = deepmerge;
|
|
|
|
declare function deepmerge<T>(x: T, y: T, options?: deepmerge.Options<T>): T;
|
|
|
|
declare namespace deepmerge {
|
|
interface Options<T> {
|
|
clone?: boolean;
|
|
arrayMerge?(destination: T, source: T, options?: Options<T>): T;
|
|
}
|
|
|
|
function all<T>(objects: T[], options?: Options<T>): T;
|
|
}
|