@types/deep-extend
Version:
TypeScript definitions for deep-extend
44 lines (37 loc) • 1.52 kB
Markdown
# Installation
> `npm install --save @types/deep-extend`
# Summary
This package contains type definitions for deep-extend (https://github.com/unclechu/node-deep-extend).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/deep-extend.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/deep-extend/index.d.ts)
````ts
// Type definitions for deep-extend 0.6
// Project: https://github.com/unclechu/node-deep-extend
// Definitions by: rhysd <https://github.com/rhysd>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Minimum TypeScript Version: 3.9
/** Recursive object extending. */
declare function deepExtend<T extends object>(target: T): T;
declare function deepExtend<T extends object, U extends object>(target: T, source: U): T & U;
declare function deepExtend<T extends object, U extends object, V extends object>(
target: T,
source1: U,
source2: V,
): T & U & V;
declare function deepExtend<T extends object, U extends object, V extends object, W extends object>(
target: T,
source1: U,
source2: V,
source3: W,
): T & U & V & W;
declare function deepExtend(target: object, ...sources: object[]): object;
declare namespace deepExtend {}
export = deepExtend;
````
### Additional Details
* Last updated: Wed, 23 Nov 2022 18:11:34 GMT
* Dependencies: none
* Global values: none
# Credits
These definitions were written by [rhysd](https://github.com/rhysd).