Skip to content

Commit

Permalink
Export AnyRoute type
Browse files Browse the repository at this point in the history
  • Loading branch information
JAForbes committed Apr 27, 2024
1 parent 32f66ae commit dfd828f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, any>, context: RouteContext }
export type AnyRoute = { type: string, tag: string, value: Record<string, any>, context: RouteContext }

function toPathSafeExternal(route: AnyRoute): Either<Error, string>{
return toPathInternalSafe(route, route.context.parentPatterns, route.context.patterns)
Expand Down

0 comments on commit dfd828f

Please sign in to comment.