Installation
npm install --save @types/clone
Summary
This package contains type definitions for clone (https://github.com/pvorb/node-clone).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/clone.
declare function clone<T>(
val: T,
circular?: boolean,
depth?: number,
prototype?: any,
includeNonEnumerable?: boolean,
): T;
declare function clone<T>(val: T, opts: CloneOpts): T;
interface CloneOpts {
circular?: boolean | undefined;
depth?: number | undefined;
prototype?: any;
includeNonEnumerable?: boolean | undefined;
}
declare namespace clone {
function clonePrototype<T>(obj: T): T;
}
export = clone;
Additional Details
- Last updated: Mon, 06 Nov 2023 22:41:05 GMT
- Dependencies: none
Credits
These definitions were written by Kieran Simpson, and DG-za.