From cd327de1d6d1d49889831c8c9ae9734b6967b4af Mon Sep 17 00:00:00 2001 From: C-3PO Date: Thu, 15 Nov 2018 21:59:31 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Export=20shutdown=20functi?= =?UTF-8?q?on?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.ts | 1 + src/shutdown.ts | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 src/shutdown.ts diff --git a/src/index.ts b/src/index.ts index 11d93d0..aaae34a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -3,3 +3,4 @@ export { default as getManifest } from './exports/getManifest'; export { default as productList } from './exports/productList'; export { default as IDatabaseSettings } from './interfaces/IDatabaseSettings'; export { default as init } from './init'; +export { default as shutdown } from './shutdown'; diff --git a/src/shutdown.ts b/src/shutdown.ts new file mode 100644 index 0000000..eef64bd --- /dev/null +++ b/src/shutdown.ts @@ -0,0 +1,5 @@ +import { exit } from './database/database'; + +export default function shutdown() { + exit(); +}