forked from github/fast-deep-copy
添加types信息
This commit is contained in:
parent
1666647ae7
commit
7dddf109f9
4
index.d.ts
vendored
Normal file
4
index.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
declare module 'fast-deep-copy-ts' {
|
||||||
|
const deepCopy: <T>(obj: T, cache: any[]) => T;
|
||||||
|
export = deepCopy;
|
||||||
|
}
|
@ -1,8 +1,9 @@
|
|||||||
{
|
{
|
||||||
"name": "fast-deep-copy",
|
"name": "fast-deep-copy-ts",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "20 lines code! Deep copy the given object considering circular structure",
|
"description": "20 lines code! Deep copy the given object considering circular structure",
|
||||||
"main": "dist/deep-copy.js",
|
"main": "dist/deep-copy.js",
|
||||||
|
"types": "index.d.ts",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"fast-deep-copy",
|
"fast-deep-copy",
|
||||||
"deep-copy",
|
"deep-copy",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user