Skip to content

Commit

Permalink
fix: export type makers
Browse files Browse the repository at this point in the history
  • Loading branch information
tannerlinsley committed Dec 6, 2022
1 parent bb352a1 commit 7e049f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/react-router/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export function lazy(
return finalComp
}

type LinkPropsOptions<
export type LinkPropsOptions<
TAllRouteInfo extends AnyAllRouteInfo,
TFrom extends ValidFromPath<TAllRouteInfo>,
TTo extends string,
Expand All @@ -92,7 +92,7 @@ type LinkPropsOptions<
| (() => React.AnchorHTMLAttributes<HTMLAnchorElement>)
}

type MakeMatchRouteOptions<
export type MakeMatchRouteOptions<
TAllRouteInfo extends AnyAllRouteInfo,
TFrom extends ValidFromPath<TAllRouteInfo>,
TTo extends string,
Expand All @@ -109,14 +109,14 @@ type MakeMatchRouteOptions<
) => React.ReactNode)
}

type MakeLinkPropsOptions<
export type MakeLinkPropsOptions<
TAllRouteInfo extends AnyAllRouteInfo,
TFrom extends ValidFromPath<TAllRouteInfo>,
TTo extends string,
> = LinkPropsOptions<TAllRouteInfo, TFrom, TTo> &
React.AnchorHTMLAttributes<HTMLAnchorElement>

type MakeLinkOptions<
export type MakeLinkOptions<
TAllRouteInfo extends AnyAllRouteInfo,
TFrom extends ValidFromPath<TAllRouteInfo>,
TTo extends string,
Expand Down

0 comments on commit 7e049f0

Please sign in to comment.