Skip to content

Commit

Permalink
Match named param to implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
pleek91 committed Jan 26, 2024
1 parent 4d197dc commit 0954cc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utilities/createRouterPush.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export type RouterPushOptions = {
replace?: boolean,
}

type RouteWithParams<
export type RouteWithParams<
TRoutes extends Routes,
TRoutePath extends string
> = {
Expand All @@ -23,7 +23,7 @@ export type RouterPush<
TRoutes extends Routes
> = <
TRoutePath extends string
>(arg1: string | RouteWithParams<TRoutes, TRoutePath> | ReturnType<RouteMethod>, options?: RouterPushOptions) => Promise<void>
>(source: string | RouteWithParams<TRoutes, TRoutePath> | ReturnType<RouteMethod>, options?: RouterPushOptions) => Promise<void>

type RouterPushContext = {
navigation: RouterNavigation,
Expand Down

0 comments on commit 0954cc7

Please sign in to comment.