clone/000755 001751 000177 0000000000 14522265601013642 5ustar00runner000000 000000 1452226560114522265601clone/LICENSE000644 001751 000177 0000002165 14522265601014653 0ustar00runner000000 000000 1452226560114522265601 MIT License Copyright (c) Microsoft Corporation. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE clone/README.md000644 001751 000177 0000004764 14522265601015135 0ustar00runner000000 000000 1452230377114522265601# 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. ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/clone/index.d.ts) ````ts /** * See clone JS source for API docs */ /** * @param val the value that you want to clone, any type allowed * @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 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( 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(val: T, opts: CloneOpts): T; interface CloneOpts { circular?: boolean | undefined; depth?: number | undefined; prototype?: any; includeNonEnumerable?: boolean | undefined; } declare namespace clone { /** * @param obj the object that you want to clone */ function clonePrototype(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](https://github.com/kierans), and [DG-za](https://github.com/DG-za). clone/index.d.ts000644 001751 000177 0000003610 14522265601015543 0ustar00runner000000 000000 1452226560114522265601/** * See clone JS source for API docs */ /** * @param val the value that you want to clone, any type allowed * @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 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( 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(val: T, opts: CloneOpts): T; interface CloneOpts { circular?: boolean | undefined; depth?: number | undefined; prototype?: any; includeNonEnumerable?: boolean | undefined; } declare namespace clone { /** * @param obj the object that you want to clone */ function clonePrototype(obj: T): T; } export = clone; clone/package.json000644 001751 000177 0000001621 14522265601016131 0ustar00runner000000 000000 1452230377114522265601{ "name": "@types/clone", "version": "2.1.4", "description": "TypeScript definitions for clone", "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/clone", "license": "MIT", "contributors": [ { "name": "Kieran Simpson", "githubUsername": "kierans", "url": "https://github.com/kierans" }, { "name": "DG-za", "githubUsername": "DG-za", "url": "https://github.com/DG-za" } ], "main": "", "types": "index.d.ts", "repository": { "type": "git", "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", "directory": "types/clone" }, "scripts": {}, "dependencies": {}, "typesPublisherContentHash": "12d928d0ed5d27aba064c75e6c852342b0efade6fa1a012feaa0af4f9ee7c7df", "typeScriptVersion": "4.5" }