diff --git a/src/index.ts b/src/index.ts index fac3d4a..ccccb60 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,10 +1,21 @@ +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'; -//Exports various functions as endpoints -export default Object.freeze({ +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;