From d52568ec5756eafd2b018b4346c97477b05626fe Mon Sep 17 00:00:00 2001 From: Sambo Chea Date: Tue, 30 Mar 2021 10:16:49 +0700 Subject: [PATCH] Updated the package and add function and declared type --- excel2json.d.ts | 12 ++++++++++++ package.json | 4 ++-- 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 excel2json.d.ts diff --git a/excel2json.d.ts b/excel2json.d.ts new file mode 100644 index 0000000..c1408ca --- /dev/null +++ b/excel2json.d.ts @@ -0,0 +1,12 @@ +interface Excel2JsonProps { + mappings?: Array; + saveToOutput?: boolean; + outputPath?: string; + outputName?: string; + sheetName?: string; + inputFile?: string; + mapperFile?: string; + encoding?: string; +} + +declare function excel2json(props: Excel2JsonProps); diff --git a/package.json b/package.json index deae321..89134c9 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { - "name": "excel2json", + "name": "excel2json-xlsx", "version": "1.0.0", - "description": "Excel to json", + "description": "Excel to JSON, able to export JSON from Excel (xlsx)", "repository": { "url": "https://github.com/CUBETIQ/excel2json.git" },