main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
823 bytes
|
Line | |
---|
1 | declare function deepmerge<T>(x: Partial<T>, y: Partial<T>, options?: deepmerge.Options): T;
|
---|
2 | declare function deepmerge<T1, T2>(x: Partial<T1>, y: Partial<T2>, options?: deepmerge.Options): T1 & T2;
|
---|
3 |
|
---|
4 | declare namespace deepmerge {
|
---|
5 | export interface Options {
|
---|
6 | arrayMerge?(target: any[], source: any[], options?: ArrayMergeOptions): any[];
|
---|
7 | clone?: boolean;
|
---|
8 | customMerge?: (key: string, options?: Options) => ((x: any, y: any) => any) | undefined;
|
---|
9 | isMergeableObject?(value: object): boolean;
|
---|
10 | }
|
---|
11 | export interface ArrayMergeOptions {
|
---|
12 | isMergeableObject(value: object): boolean;
|
---|
13 | cloneUnlessOtherwiseSpecified(value: object, options?: Options): object;
|
---|
14 | }
|
---|
15 |
|
---|
16 | export function all (objects: object[], options?: Options): object;
|
---|
17 | export function all<T> (objects: Partial<T>[], options?: Options): T;
|
---|
18 | }
|
---|
19 |
|
---|
20 | export = deepmerge;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.