From 7c2531a6aa9b45604cd2d4ef20aabaae4d38423b Mon Sep 17 00:00:00 2001 From: C-3PO Date: Thu, 15 Nov 2018 20:05:41 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Fix=20re-export=20syntax?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.ts | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/src/index.ts b/src/index.ts index ccccb60..76a1a02 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,21 +1,4 @@ -import { Product } from 'ssn'; -import getManifest from './exports/getManifest'; -import productList from './exports/productList'; -import init from './init'; -import IDatabaseSettings from './interfaces/IDatabaseSettings'; -import IProductData from './interfaces/IProductData'; - -interface IEndpoints { - getManifest: (product: Product) => {}; - init: (dbSettings: IDatabaseSettings) => Promise<{ [key in Product]?: IProductData }>; - productList: ReadonlyArray; -} - -const out: Readonly = Object.freeze({ - getManifest, - init, - productList, -}); - //Exports various functions as endpoints -export default out; +export { default as getManifest } from './exports/getManifest'; +export { default as productList } from './exports/productList'; +export { default as init } from './init';