🎨 Fix re-export syntax

This commit is contained in:
C-3PO 2018-11-15 20:05:41 +01:00
parent dc038fe4d5
commit 7c2531a6aa
Signed by: c3po
GPG key ID: 62993C4BB4D86F24

View file

@ -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<Product>;
}
const out: Readonly<IEndpoints> = Object.freeze({
getManifest,
init,
productList,
});
//Exports various functions as endpoints //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';