@types/clone
Advanced tools
Comparing version 0.1.30 to 2.1.0
@@ -1,4 +0,5 @@ | ||
// Type definitions for clone 0.1.11 | ||
// Type definitions for clone 2.1 | ||
// Project: https://github.com/pvorb/node-clone | ||
// Definitions by: Kieran Simpson <https://github.com/kierans/DefinitelyTyped> | ||
// Definitions by: Kieran Simpson <https://github.com/kierans> | ||
// DG-za <https://github.com/DG-za> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -13,6 +14,25 @@ | ||
* @param circular Call clone with circular set to false if you are certain that obj contains no circular references. This will give better performance if needed. There is no error if undefined or null is passed as obj. | ||
* @param depth to wich the object is to be cloned (optional, defaults to infinity) | ||
* @param depth to which the object is to be cloned (optional, defaults to infinity) | ||
* @param prototype Sets the prototype to be used when cloning an Object (optional, defaults to __proto__) | ||
* @param includeNonEnumerable Set to true if the non-enumerable properties should be cloned as well (optional, defaults to false) | ||
*/ | ||
declare function clone<T>(val: T, circular?: boolean, depth?: number): T; | ||
declare function clone<T>(val: T, circular?: boolean, depth?: number, prototype?: any, includeNonEnumerable?: boolean): T; | ||
/** | ||
* @param val the value that you want to clone, any type allowed | ||
* @param opts a single object that specifies circular, depth, prototype and includeNonEnumerable. | ||
* @param opts.circular Call clone with circular set to false if you are certain that obj contains no circular references. This will give better performance if needed. There is no error if undefined or null is passed as obj. | ||
* @param opts.depth Sets depth to which the object is to be cloned (optional, defaults to infinity) | ||
* @param opts.prototype Sets the prototype to be used when cloning an Object (optional, defaults to __proto__) | ||
* @param opts.includeNonEnumerable Set to true if the non-enumerable properties should be cloned as well (optional, defaults to false) | ||
*/ | ||
declare function clone<T>(val: T, opts: CloneOpts): T; | ||
interface CloneOpts { | ||
circular?: boolean, | ||
depth?: number, | ||
prototype?: any, | ||
includeNonEnumerable?: boolean | ||
} | ||
declare namespace clone { | ||
@@ -19,0 +39,0 @@ /** |
{ | ||
"name": "@types/clone", | ||
"version": "0.1.30", | ||
"description": "TypeScript definitions for clone 0.1.11", | ||
"version": "2.1.0", | ||
"description": "TypeScript definitions for clone", | ||
"license": "MIT", | ||
"author": "Kieran Simpson <https://github.com/kierans/DefinitelyTyped>", | ||
"contributors": [ | ||
{ | ||
"name": "Kieran Simpson", | ||
"url": "https://github.com/kierans", | ||
"githubUsername": "kierans" | ||
}, | ||
{ | ||
"name": "DG-za", | ||
"url": "https://github.com/DG-za", | ||
"githubUsername": "DG-za" | ||
} | ||
], | ||
"main": "", | ||
"types": "index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/clone" | ||
}, | ||
"scripts": {}, | ||
"dependencies": {}, | ||
"typings": "index.d.ts", | ||
"typesPublisherContentHash": "29fd82aa066f07307712c9ce140436aba20b3bfbe9bf8f702f359c230c481f03" | ||
"typesPublisherContentHash": "875a3d68bc3518139eff190816f0215d1ba2475faf583db671dfcd364cce1ffc", | ||
"typeScriptVersion": "3.0" | ||
} |
@@ -5,15 +5,13 @@ # Installation | ||
# Summary | ||
This package contains type definitions for clone 0.1.11 (https://github.com/pvorb/node-clone). | ||
This package contains type definitions for clone (https://github.com/pvorb/node-clone). | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/clone | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/clone. | ||
Additional Details | ||
* Last updated: Mon, 19 Sep 2016 16:15:23 GMT | ||
* File structure: ProperModule | ||
* Library Dependencies: none | ||
* Module Dependencies: none | ||
* Global values: clone | ||
### Additional Details | ||
* Last updated: Sat, 08 Aug 2020 08:55:34 GMT | ||
* Dependencies: none | ||
* Global values: none | ||
# Credits | ||
These definitions were written by Kieran Simpson <https://github.com/kierans/DefinitelyTyped>. | ||
These definitions were written by [Kieran Simpson](https://github.com/kierans), and [DG-za](https://github.com/DG-za). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
4616
1
38
17