🎨 Fix re-export syntax
This commit is contained in:
parent
dc038fe4d5
commit
7c2531a6aa
1 changed files with 3 additions and 20 deletions
23
src/index.ts
23
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<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';
|
||||||
|
|
Loading…
Reference in a new issue