Skip to content

Commit 56fd4ba

Browse files
committed
fix(types): narrow return type of routeBaseName with typedPages enabled
1 parent bafd32d commit 56fd4ba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/runtime/composables/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ type RouteLocationI18nGenericPath = Omit<RouteLocationAsRelativeI18n, 'path'> &
116116
*/
117117
export type RouteBaseNameFunction = <Name extends keyof RouteMap = keyof RouteMap>(
118118
route: Name | RouteLocationGenericPath
119-
) => string | undefined
119+
) => keyof RouteMapI18n | undefined
120120

121121
/**
122122
* Returns a {@link RouteBaseNameFunction} used get the base name of a route.

0 commit comments

Comments
 (0)