From 7517312f28ada58baf6283ef0f65c3bd65c147df Mon Sep 17 00:00:00 2001 From: Dario Banfi Date: Fri, 24 Aug 2018 13:07:03 +0200 Subject: [PATCH 1/2] Fixed typings/export issue --- package.json | 2 +- types/index.d.ts | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index ef478ff..a9c5e48 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "js2excel", - "version": "1.0.1", + "version": "1.0.2", "author": "pomysky@gmail.com", "description": "A simple module for excel and json converts each other", "license": "MIT", diff --git a/types/index.d.ts b/types/index.d.ts index 1789c67..5a3d0d5 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -12,4 +12,9 @@ declare const js2excel: { json2excel: typeof json2excel; csv2json: typeof csv2json; }; +export { + json2excel, + excel2json, + csv2json +}; export default js2excel; From 190a86121b532057d247ae24b82f84e60cc8fe55 Mon Sep 17 00:00:00 2001 From: Dario Banfi Date: Fri, 24 Aug 2018 13:16:12 +0200 Subject: [PATCH 2/2] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index a3929b4..67d1f45 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ ![download](https://img.shields.io/npm/dt/js2excel.svg) ![npm-version](https://img.shields.io/npm/v/js2excel.svg) ![license](https://img.shields.io/npm/l/js2excel.svg) ![bower-license](https://img.shields.io/bower/l/js2excel.svg) +This repo just fixes the missing export, allowing it to be used in Angular 6 projects + ## js2excel A simple module for excel and json converts each other.