Skip to content

Commit 05ed0fc

Browse files
authored
fix(types): $getRouteBaseName parameter type (#2933)
1 parent 4693ec2 commit 05ed0fc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/runtime/plugins/i18n.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ import type {
4242
LocaleHeadFunction,
4343
LocalePathFunction,
4444
LocaleRouteFunction,
45+
RouteBaseNameFunction,
4546
SwitchLocalePathFunction
4647
} from '../composables'
4748

@@ -489,7 +490,7 @@ declare module '#app' {
489490
*
490491
* @returns The route base name. if cannot get, `undefined` is returned.
491492
*/
492-
$getRouteBaseName: (...args: Parameters<typeof getRouteBaseName>) => ReturnType<typeof getRouteBaseName>
493+
$getRouteBaseName: (...args: Parameters<RouteBaseNameFunction>) => ReturnType<typeof getRouteBaseName>
493494
/**
494495
* Returns localized path for passed in route.
495496
*

0 commit comments

Comments
 (0)