MenuItem: change 'to' type to RouteLocationRaw

pull/1968/head
Lorian Coltof 2021-12-29 11:13:34 +01:00 committed by Tuğçe Küçükoğlu
parent e8bea56d09
commit 6422bc62ee
1 changed files with 3 additions and 1 deletions

View File

@ -1,3 +1,5 @@
import { RouteLocationRaw } from "vue-router";
type MenuItemLabelType = string | ((...args: any) => string) | undefined; type MenuItemLabelType = string | ((...args: any) => string) | undefined;
type MenuItemDisabledType = boolean | ((...args: any) => boolean) | undefined; type MenuItemDisabledType = boolean | ((...args: any) => boolean) | undefined;
@ -31,7 +33,7 @@ export interface MenuItem {
/** /**
* Route configuration such as path, name and parameters. * Route configuration such as path, name and parameters.
*/ */
to?: string | undefined; to?: RouteLocationRaw | undefined;
/** /**
* Callback to execute when item is clicked. * Callback to execute when item is clicked.
* @param {@link MenuItemCommandEvent} event - Custom command event. * @param {@link MenuItemCommandEvent} event - Custom command event.