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"));