From 701e020116ce075b85f94381a2e9b0753bf1703c Mon Sep 17 00:00:00 2001 From: Alexander Cerutti Date: Thu, 27 Jun 2019 00:43:50 +0200 Subject: [PATCH] Added Pass as exported type --- index.ts | 2 +- src/factory.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/index.ts b/index.ts index 7bc5732..527fdbc 100644 --- a/index.ts +++ b/index.ts @@ -1 +1 @@ -export { createPass } from "./src/factory"; +export { createPass, Pass } from "./src/factory"; diff --git a/src/factory.ts b/src/factory.ts index 881f3b4..734d311 100644 --- a/src/factory.ts +++ b/src/factory.ts @@ -11,6 +11,8 @@ import { removeHidden } from "./utils"; const readDir = promisify(_readdir); const readFile = promisify(_readFile); +export type Pass = InstanceType + export async function createPass(options: FactoryOptions): Promise { if (!(options && Object.keys(options).length)) { throw new Error(formatMessage("CP_NO_OPTS"));