From 2f4ebfbda2e252e61d23c255a7089e974d4c2d14 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 24 Mar 2023 20:27:07 -0500 Subject: [PATCH] Export useful types in mod.ts --- mod.ts | 3 +++ src/pipeline.ts | 2 ++ 2 files changed, 5 insertions(+) diff --git a/mod.ts b/mod.ts index e00c0d2..d05e972 100644 --- a/mod.ts +++ b/mod.ts @@ -6,3 +6,6 @@ export { default as readOnlyPolicy } from './src/policies/read-only-policy.ts'; export { readStdin, writeStdout } from './src/io.ts'; export { default as pipeline } from './src/pipeline.ts'; + +export type { Event, InputMessage, OutputMessage, Policy } from './src/types.ts'; +export type { PolicyTuple } from './src/pipeline.ts'; diff --git a/src/pipeline.ts b/src/pipeline.ts index 9d379a4..ff0469e 100644 --- a/src/pipeline.ts +++ b/src/pipeline.ts @@ -33,3 +33,5 @@ function toTuple(item: PolicyTuple | Policy): PolicyTuple { } export default pipeline; + +export type { PolicyTuple };