UNPKG

1.52 kBMarkdownView Raw
1# Installation
2> `npm install --save @types/deep-extend`
3
4# Summary
5This package contains type definitions for deep-extend (https://github.com/unclechu/node-deep-extend).
6
7# Details
8Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/deep-extend.
9## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/deep-extend/index.d.ts)
10````ts
11// Type definitions for deep-extend 0.6
12// Project: https://github.com/unclechu/node-deep-extend
13// Definitions by: rhysd <https://github.com/rhysd>
14// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
15// Minimum TypeScript Version: 3.9
16
17/** Recursive object extending. */
18declare function deepExtend<T extends object>(target: T): T;
19declare function deepExtend<T extends object, U extends object>(target: T, source: U): T & U;
20declare function deepExtend<T extends object, U extends object, V extends object>(
21 target: T,
22 source1: U,
23 source2: V,
24): T & U & V;
25declare function deepExtend<T extends object, U extends object, V extends object, W extends object>(
26 target: T,
27 source1: U,
28 source2: V,
29 source3: W,
30): T & U & V & W;
31declare function deepExtend(target: object, ...sources: object[]): object;
32declare namespace deepExtend {}
33export = deepExtend;
34
35````
36
37### Additional Details
38 * Last updated: Wed, 23 Nov 2022 18:11:34 GMT
39 * Dependencies: none
40 * Global values: none
41
42# Credits
43These definitions were written by [rhysd](https://github.com/rhysd).
44
\No newline at end of file