添加types信息

This commit is contained in:
范大德 2022-12-01 15:08:21 +08:00
parent 1666647ae7
commit 7dddf109f9
2 changed files with 7 additions and 2 deletions

4
index.d.ts vendored Normal file
View File

@ -0,0 +1,4 @@
declare module 'fast-deep-copy-ts' {
const deepCopy: <T>(obj: T, cache: any[]) => T;
export = deepCopy;
}

View File

@ -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",