mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-27 06:22:55 +08:00
17 lines
555 B
TypeScript
17 lines
555 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;
|
|
} |