From 716d3b92271b06e3492f9306b318555fb42dc996 Mon Sep 17 00:00:00 2001 From: Jeff Dickey <216188+jdxcode@users.noreply.github.com> Date: Fri, 26 Jan 2018 13:36:15 -0800 Subject: [PATCH] fix: export types as FancyTypes --- src/index.ts | 3 +++ src/types.ts | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 src/types.ts diff --git a/src/index.ts b/src/index.ts index a4906e3..50c3dad 100644 --- a/src/index.ts +++ b/src/index.ts @@ -6,6 +6,8 @@ import nock, {NockScope} from './nock' import {stderr, stdout} from './stdmock' import stub from './stub' +import * as FancyTypes from './types' + export const fancy = base .register('catch', _catch) .register('env', env) @@ -17,6 +19,7 @@ export const fancy = base export type Fancy = typeof fancy export { + FancyTypes, Base, Context, EnvOptions, diff --git a/src/types.ts b/src/types.ts new file mode 100644 index 0000000..d455804 --- /dev/null +++ b/src/types.ts @@ -0,0 +1,3 @@ +export {Base, Context, Plugin} from './base' +export {EnvOptions} from './env' +export {NockScope} from './nock'