diff --git a/lib/index.ts b/lib/index.ts index 9374221..556eeed 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -180,7 +180,7 @@ function otherwise(tags: string[]) { return (fn: any) => Object.fromEntries(tags.map((tag) => [tag, fn])); } -type AnyRoute = { type: string, tag: string, value: Record, context: RouteContext } +export type AnyRoute = { type: string, tag: string, value: Record, context: RouteContext } function toPathSafeExternal(route: AnyRoute): Either{ return toPathInternalSafe(route, route.context.parentPatterns, route.context.patterns)