From a65f6501090ff203536623d3d0a481033411f376 Mon Sep 17 00:00:00 2001 From: Rafa Mel Date: Mon, 22 Apr 2019 02:15:19 +0200 Subject: [PATCH] feat(exposed): adds exposed w/ options --- src/exposed/index.ts | 1 + src/exposed/options.ts | 6 ++++++ src/index.ts | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 src/exposed/index.ts create mode 100644 src/exposed/options.ts diff --git a/src/exposed/index.ts b/src/exposed/index.ts new file mode 100644 index 0000000..6140eaa --- /dev/null +++ b/src/exposed/index.ts @@ -0,0 +1 @@ +export { default as options } from './options'; diff --git a/src/exposed/options.ts b/src/exposed/options.ts new file mode 100644 index 0000000..7e95fcf --- /dev/null +++ b/src/exposed/options.ts @@ -0,0 +1,6 @@ +import state from '~/state'; +import { IOptions } from '~/types'; + +export default function options(opts: IOptions): void { + return state.scope(opts); +} diff --git a/src/index.ts b/src/index.ts index 8462bac..fc95001 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,2 +1,2 @@ +export * from './exposed'; export * from './types'; -export { default as options } from './options';